remove seeders in dev

This commit is contained in:
Andras Bacsai 2023-08-21 20:19:47 +02:00
parent bed959f1cd
commit 2414ddd360
2 changed files with 29 additions and 29 deletions

View File

@ -12,17 +12,17 @@ class ScheduledDatabaseBackupExecutionSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
ScheduledDatabaseBackupExecution::create([ // ScheduledDatabaseBackupExecution::create([
'status' => 'success', // 'status' => 'success',
'message' => 'Backup created successfully.', // 'message' => 'Backup created successfully.',
'size' => '10243467789556', // 'size' => '10243467789556',
'scheduled_database_backup_id' => 1, // 'scheduled_database_backup_id' => 1,
]); // ]);
ScheduledDatabaseBackupExecution::create([ // ScheduledDatabaseBackupExecution::create([
'status' => 'failed', // 'status' => 'failed',
'message' => 'Backup failed.', // 'message' => 'Backup failed.',
'size' => '10243456', // 'size' => '10243456',
'scheduled_database_backup_id' => 1, // 'scheduled_database_backup_id' => 1,
]); // ]);
} }
} }

View File

@ -12,22 +12,22 @@ class ScheduledDatabaseBackupSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
ScheduledDatabaseBackup::create([ // ScheduledDatabaseBackup::create([
'enabled' => true, // 'enabled' => true,
'frequency' => '* * * * *', // 'frequency' => '* * * * *',
'number_of_backups_locally' => 2, // 'number_of_backups_locally' => 2,
'database_id' => 1, // 'database_id' => 1,
'database_type' => 'App\Models\StandalonePostgresql', // 'database_type' => 'App\Models\StandalonePostgresql',
's3_storage_id' => 1, // 's3_storage_id' => 1,
'team_id' => 0, // 'team_id' => 0,
]); // ]);
ScheduledDatabaseBackup::create([ // ScheduledDatabaseBackup::create([
'enabled' => true, // 'enabled' => true,
'frequency' => '* * * * *', // 'frequency' => '* * * * *',
'number_of_backups_locally' => 3, // 'number_of_backups_locally' => 3,
'database_id' => 1, // 'database_id' => 1,
'database_type' => 'App\Models\StandalonePostgresql', // 'database_type' => 'App\Models\StandalonePostgresql',
'team_id' => 0, // 'team_id' => 0,
]); // ]);
} }
} }