fix(database): Improve database type detection for Supabase Postgres images
This commit is contained in:
parent
96cf9abef8
commit
c3d77e31b2
1 changed files with 7 additions and 3 deletions
|
|
@ -78,11 +78,15 @@ public function serviceType()
|
||||||
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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue