test update

This commit is contained in:
edmondlang
2023-12-19 00:02:10 +08:00
parent ed44b09483
commit 84e787f05e
@@ -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');
});
}
}