Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat(database): Add index to scheduled database backup executions

Andras Bacsai9c4395e6de8e
diff --git a/database/migrations/2025_02_27_125249_add_index_to_scheduled_task_executions.php b/database/migrations/2025_02_27_125249_add_index_to_scheduled_task_executions.php
index e8033cfdc3..45c6b581d6 100644
--- a/database/migrations/2025_02_27_125249_add_index_to_scheduled_task_executions.php
+++ b/database/migrations/2025_02_27_125249_add_index_to_scheduled_task_executions.php
@@ -14,6 +14,13 @@ return new class extends Migration
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 @@ return new class extends Migration
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');
+ });
}
};