rename postgres to standalonepostgres
This commit is contained in:
@@ -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...'",
|
||||
|
||||
@@ -33,7 +33,7 @@ class Environment extends Model
|
||||
}
|
||||
public function postgresqls()
|
||||
{
|
||||
return $this->hasMany(Postgresql::class);
|
||||
return $this->hasMany(StandalonePostgres::class);
|
||||
}
|
||||
public function services()
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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 = [];
|
||||
Reference in New Issue
Block a user