2023-08-07 18:46:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
|
use Illuminate\Database\Seeder;
|
2023-08-07 19:25:32 +02:00
|
|
|
use App\Models\StandalonePostgres;
|
2023-08-07 18:46:40 +02:00
|
|
|
use App\Models\StandaloneDocker;
|
|
|
|
|
2023-08-07 19:25:32 +02:00
|
|
|
class StandalonePostgresSeeder extends Seeder
|
2023-08-07 18:46:40 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2023-08-07 19:25:32 +02:00
|
|
|
StandalonePostgres::create([
|
2023-08-07 18:46:40 +02:00
|
|
|
'name' => 'Local PostgreSQL',
|
|
|
|
'description' => 'Local PostgreSQL for testing',
|
|
|
|
'postgres_password' => 'postgres',
|
|
|
|
'environment_id' => 1,
|
|
|
|
'destination_id' => 1,
|
|
|
|
'destination_type' => StandaloneDocker::class,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|