From 313507835c89fdbb53621b33d8d7971b5247903a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Feb 2026 14:00:23 +0100 Subject: [PATCH] finish with debit and credit operations --- ...atus_to_wallet_ilink_transaction_table.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 database/migrations/2026_02_23_121927_add_status_to_wallet_ilink_transaction_table.php diff --git a/database/migrations/2026_02_23_121927_add_status_to_wallet_ilink_transaction_table.php b/database/migrations/2026_02_23_121927_add_status_to_wallet_ilink_transaction_table.php new file mode 100755 index 0000000..2bfc237 --- /dev/null +++ b/database/migrations/2026_02_23_121927_add_status_to_wallet_ilink_transaction_table.php @@ -0,0 +1,40 @@ +enum('status', ['PENDING', 'PROCESSING', 'SUCCESS', 'FAILED', 'CANCELED'])->default('PENDING')->after('payment_transaction_id'); + $table->string('bank_account_number')->nullable()->after('status'); + $table->string('bank_name')->nullable()->after('bank_account_number'); + } + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('wallet_ilink_transaction', function (Blueprint $table) { + if(Schema::hasColumn('wallet_ilink_transaction', 'status')) { + $table->dropColumn('status'); + $table->dropColumn('bank_account_number'); + $table->dropColumn('bank_name'); + } + }); + } +}