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'); + } + }); + } +}