feat: init postgresql database
This commit is contained in:
26
database/seeders/PostgresqlSeeder.php
Normal file
26
database/seeders/PostgresqlSeeder.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\Postgresql;
|
||||
use App\Models\StandaloneDocker;
|
||||
|
||||
class PostgresqlSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Postgresql::create([
|
||||
'name' => 'Local PostgreSQL',
|
||||
'description' => 'Local PostgreSQL for testing',
|
||||
'postgres_password' => 'postgres',
|
||||
'environment_id' => 1,
|
||||
'destination_id' => 1,
|
||||
'destination_type' => StandaloneDocker::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user