From 84e787f05e095d84ffda63fcde1ab2350617eb3c Mon Sep 17 00:00:00 2001 From: edmondlang Date: Tue, 19 Dec 2023 00:02:10 +0800 Subject: [PATCH] test update --- ...408_create_index_for_transaction_table.php | 40 ++++++++++++++++--- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/database/migrations/2023_12_18_230408_create_index_for_transaction_table.php b/database/migrations/2023_12_18_230408_create_index_for_transaction_table.php index 3dc38456..12824131 100644 --- a/database/migrations/2023_12_18_230408_create_index_for_transaction_table.php +++ b/database/migrations/2023_12_18_230408_create_index_for_transaction_table.php @@ -14,13 +14,27 @@ class CreateIndexForTransactionTable extends Migration public function up() { Schema::table('transactions', function (Blueprint $table) { - $table->index('status'); + $table->index('owner_type'); + $table->index('owner_id'); $table->index('type'); + $table->index('issuer'); + $table->index('receiver'); + $table->index('recipient_bank_account_id'); $table->index('payment_method'); $table->index('payment_reference'); $table->index('bill_no'); - $table->index('owner_type'); - $table->index('owner_id'); + $table->index('amount'); + $table->index('original_amount'); + $table->index('currency_id'); + $table->index('original_currency_id'); + $table->index('currency_rate'); + $table->index('tax'); + $table->index('service_charge'); + $table->index('expires_on'); + $table->index('status'); + $table->index('deleted_at'); + $table->index('created_at'); + $table->index('updated_at'); }); } @@ -32,13 +46,27 @@ class CreateIndexForTransactionTable extends Migration public function down() { Schema::table('transactions', function (Blueprint $table) { - $table->dropIndex('status'); + $table->dropIndex('owner_type'); + $table->dropIndex('owner_id'); $table->dropIndex('type'); + $table->dropIndex('issuer'); + $table->dropIndex('receiver'); + $table->dropIndex('recipient_bank_account_id'); $table->dropIndex('payment_method'); $table->dropIndex('payment_reference'); $table->dropIndex('bill_no'); - $table->dropIndex('owner_type'); - $table->dropIndex('owner_id'); + $table->dropIndex('amount'); + $table->dropIndex('original_amount'); + $table->dropIndex('currency_id'); + $table->dropIndex('original_currency_id'); + $table->dropIndex('currency_rate'); + $table->dropIndex('tax'); + $table->dropIndex('service_charge'); + $table->dropIndex('expires_on'); + $table->dropIndex('status'); + $table->dropIndex('deleted_at'); + $table->dropIndex('created_at'); + $table->dropIndex('updated_at'); }); } }