rename postgres to standalonepostgres

This commit is contained in:
Andras Bacsai
2023-08-07 19:25:32 +02:00
parent a020bc872d
commit 20e1cd6d6b
10 changed files with 29 additions and 14 deletions

View File

@@ -5,11 +5,11 @@ namespace App\Actions\Database;
use App\Models\Server;
use App\Models\StandaloneDocker;
use App\Models\Team;
use App\Models\Postgresql;
use App\Models\StandalonePostgres;
class StartPostgresql
{
public function __invoke(Server $server, Postgresql $database)
public function __invoke(Server $server, StandalonePostgres $database)
{
$activity = remote_process([
"echo 'Creating required Docker networks...'",

View File

@@ -33,7 +33,7 @@ class Environment extends Model
}
public function postgresqls()
{
return $this->hasMany(Postgresql::class);
return $this->hasMany(StandalonePostgres::class);
}
public function services()
{

View File

@@ -48,6 +48,6 @@ class Project extends BaseModel
}
public function postgresqls()
{
return $this->hasManyThrough(Postgresql::class, Environment::class);
return $this->hasManyThrough(StandalonePostgres::class, Environment::class);
}
}

View File

@@ -15,7 +15,7 @@ class StandaloneDocker extends BaseModel
}
public function postgresqls()
{
return $this->morphMany(Postgresql::class, 'destination');
return $this->morphMany(StandalonePostgres::class, 'destination');
}
public function server()
{

View File

@@ -4,7 +4,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Postgresql extends BaseModel
class StandalonePostgres extends BaseModel
{
use HasFactory;
protected $guarded = [];