feat(database): Add index to scheduled database backup executions
This commit is contained in:
parent
cd1fc649e3
commit
9c4395e6de
1 changed files with 10 additions and 0 deletions
|
|
@ -14,6 +14,13 @@ public function up(): void
|
|||
Schema::table('scheduled_task_executions', function (Blueprint $table) {
|
||||
$table->index(['scheduled_task_id', 'created_at'], 'scheduled_task_executions_task_id_created_at_index');
|
||||
});
|
||||
|
||||
Schema::table('scheduled_database_backup_executions', function (Blueprint $table) {
|
||||
$table->index(
|
||||
['scheduled_database_backup_id', 'created_at'],
|
||||
'scheduled_db_backup_executions_backup_id_created_at_index'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -24,5 +31,8 @@ public function down(): void
|
|||
Schema::table('scheduled_task_executions', function (Blueprint $table) {
|
||||
$table->dropIndex('scheduled_task_executions_task_id_created_at_index');
|
||||
});
|
||||
Schema::table('scheduled_database_backup_executions', function (Blueprint $table) {
|
||||
$table->dropIndex('scheduled_db_backup_executions_backup_id_created_at_index');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue