fix(database): Improve database type detection for Supabase Postgres images
This commit is contained in:
@@ -78,11 +78,15 @@ class ServiceDatabase extends BaseModel
|
|||||||
public function databaseType()
|
public function databaseType()
|
||||||
{
|
{
|
||||||
$image = str($this->image)->before(':');
|
$image = str($this->image)->before(':');
|
||||||
if ($image->contains('postgres') || $image->contains('postgis')) {
|
if ($image->contains('supabase/postgres')) {
|
||||||
$image = 'postgresql';
|
$finalImage = 'supabase/postgres';
|
||||||
|
} elseif ($image->contains('postgres') || $image->contains('postgis')) {
|
||||||
|
$finalImage = 'postgresql';
|
||||||
|
} else {
|
||||||
|
$finalImage = $image;
|
||||||
}
|
}
|
||||||
|
|
||||||
return "standalone-$image";
|
return "standalone-$finalImage";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getServiceDatabaseUrl()
|
public function getServiceDatabaseUrl()
|
||||||
|
|||||||
Reference in New Issue
Block a user