mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
fix(database): pgvector 18 version is not parsed properly
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user