Add index key of id_search_norujukan for transaction table

This commit is contained in:
Afiq Hamzah
2024-01-18 14:49:07 +08:00
parent 2589e0cf7c
commit d898248787
@@ -19,7 +19,7 @@ class AddIndexToTransactionTable extends Migration
$indexesFound = $schemaManager->listTableIndexes('transaction');
if (! array_key_exists('idx_search_norujukan', $indexesFound)) {
$table->index(['created_at', 'trans_type', 'kodcaw'], 'idx_search_norujukan');
$table->index(['norujukan', 'created_at', 'trans_type', 'kodcaw'], 'idx_search_norujukan');
}
});