diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.php index ea59ccaa9..5d35f335b 100644 --- a/app/Models/StandalonePostgresql.php +++ b/app/Models/StandalonePostgresql.php @@ -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]; }