mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
feat: init postgresql database
This commit is contained in:
@@ -13,9 +13,9 @@ class StandaloneDocker extends BaseModel
|
||||
{
|
||||
return $this->morphMany(Application::class, 'destination');
|
||||
}
|
||||
public function databases()
|
||||
public function postgresqls()
|
||||
{
|
||||
return $this->morphMany(Database::class, 'destination');
|
||||
return $this->morphMany(Postgresql::class, 'destination');
|
||||
}
|
||||
public function server()
|
||||
{
|
||||
@@ -25,4 +25,4 @@ class StandaloneDocker extends BaseModel
|
||||
{
|
||||
return $this->applications->count() > 0 || $this->databases->count() > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user