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

This commit is contained in:
peaklabs-dev
2026-02-04 17:59:49 +01:00
parent 7d88919775
commit 48ec6b3169

View File

@@ -32,7 +32,7 @@ class StandalonePostgresql extends BaseModel
$image = (string) ($database->getAttributes()['image'] ?? ''); $image = (string) ($database->getAttributes()['image'] ?? '');
$majorVersion = 0; $majorVersion = 0;
if (preg_match('/:(\d+)/', $image, $matches)) { if (preg_match('/:(?:pg)?(\d+)/i', $image, $matches)) {
$majorVersion = (int) $matches[1]; $majorVersion = (int) $matches[1];
} }