27 lines
670 B
PHP
27 lines
670 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\StandalonePostgresql;
|
|
use App\Models\StandaloneDocker;
|
|
|
|
class StandalonePostgresqlSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
StandalonePostgresql::create([
|
|
'name' => 'Local PostgreSQL',
|
|
'description' => 'Local PostgreSQL for testing',
|
|
'postgres_password' => 'postgres',
|
|
'environment_id' => 1,
|
|
'destination_id' => 1,
|
|
'destination_type' => StandaloneDocker::class,
|
|
]);
|
|
}
|
|
}
|