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
{
ScheduledDatabaseBackupExecution::create([
'status' => 'success',
'message' => 'Backup created successfully.',
'size' => '10243467789556',
'scheduled_database_backup_id' => 1,
]);
ScheduledDatabaseBackupExecution::create([
'status' => 'failed',
'message' => 'Backup failed.',
'size' => '10243456',
'scheduled_database_backup_id' => 1,
]);
// ScheduledDatabaseBackupExecution::create([
// 'status' => 'success',
// 'message' => 'Backup created successfully.',
// 'size' => '10243467789556',
// 'scheduled_database_backup_id' => 1,
// ]);
// ScheduledDatabaseBackupExecution::create([
// 'status' => 'failed',
// 'message' => 'Backup failed.',
// 'size' => '10243456',
// 'scheduled_database_backup_id' => 1,
// ]);
}
}

View File

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