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

@@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('postgresqls', function (Blueprint $table) {
Schema::create('standalone_postgres', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->string('name');
@@ -37,6 +37,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('postgresqls');
Schema::dropIfExists('standalone_postgres');
}
};

View File

@@ -32,7 +32,7 @@ class DatabaseSeeder extends Seeder
EnvironmentVariableSeeder::class,
LocalPersistentVolumeSeeder::class,
S3StorageSeeder::class,
PostgresqlSeeder::class,
StandalonePostgresSeeder::class,
]);
}
}

View File

@@ -4,17 +4,17 @@ namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Postgresql;
use App\Models\StandalonePostgres;
use App\Models\StandaloneDocker;
class PostgresqlSeeder extends Seeder
class StandalonePostgresSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Postgresql::create([
StandalonePostgres::create([
'name' => 'Local PostgreSQL',
'description' => 'Local PostgreSQL for testing',
'postgres_password' => 'postgres',