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
No known key found for this signature in database

View file

@ -32,7 +32,7 @@ protected static function booted()
$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];
}