diff --git a/database/migrations/2024_10_15_044532_add_index_to_transactions.php b/database/migrations/2024_10_15_044532_add_index_to_transactions.php index 531f857f..4123fe3a 100644 --- a/database/migrations/2024_10_15_044532_add_index_to_transactions.php +++ b/database/migrations/2024_10_15_044532_add_index_to_transactions.php @@ -14,7 +14,6 @@ class AddIndexToTransactions extends Migration public function up() { Schema::table('transactions', function (Blueprint $table) { - // Create the composite index $table->index(['owner_id', 'owner_type', 'created_at', 'status'], 'idx_transactions_owner_date_status'); }); } @@ -27,7 +26,6 @@ class AddIndexToTransactions extends Migration public function down() { Schema::table('transactions', function (Blueprint $table) { - // Drop the index $table->dropIndex('idx_transactions_owner_date_status'); }); }