fix(database): pgvector 18 version is not parsed properly
This commit is contained in:
parent
7d88919775
commit
48ec6b3169
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ protected static function booted()
|
||||||
$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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue