Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(database): pgvector 18 version is not parsed properly

peaklabs-dev48ec6b316922
diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.php
index ea59ccaa99..5d35f335bf 100644
--- a/app/Models/StandalonePostgresql.php
+++ b/app/Models/StandalonePostgresql.php
@@ -32,7 +32,7 @@ class StandalonePostgresql extends BaseModel
$image = (string) ($database->getAttributes()['image'] ?? '');
$majorVersion = 0;
- if (preg_match('/:(\d+)/', $image, $matches)) {
+ if (preg_match('/:(?:pg)?(\d+)/i', $image, $matches)) {
$majorVersion = (int) $matches[1];
}