coolify/database/seeders/StandalonePostgresqlSeeder.php

27 lines
670 B
PHP
Raw Normal View History

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 22:14:21 +02:00
use App\Models\StandalonePostgresql;
2023-08-07 18:46:40 +02:00
use App\Models\StandaloneDocker;
2023-08-07 22:14:21 +02:00
class StandalonePostgresqlSeeder extends Seeder
2023-08-07 18:46:40 +02:00
{
/**
* Run the database seeds.
*/
public function run(): void
{
2023-08-07 22:14:21 +02:00
StandalonePostgresql::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,
]);
}
2023-08-07 22:14:21 +02:00
}