diff --git a/database/migrations/2026_02_19_100000_add_client_fields_to_barobill_bank_transactions.php b/database/migrations/2026_02_19_100000_add_client_fields_to_barobill_bank_transactions.php new file mode 100644 index 0000000..ec60b5d --- /dev/null +++ b/database/migrations/2026_02_19_100000_add_client_fields_to_barobill_bank_transactions.php @@ -0,0 +1,25 @@ +string('client_code', 50)->nullable()->comment('거래처 코드')->after('account_name'); + $table->string('client_name', 100)->nullable()->comment('거래처명')->after('client_code'); + $table->index(['tenant_id', 'client_code'], 'bb_trans_tenant_client_idx'); + }); + } + + public function down(): void + { + Schema::table('barobill_bank_transactions', function (Blueprint $table) { + $table->dropIndex('bb_trans_tenant_client_idx'); + $table->dropColumn(['client_code', 'client_name']); + }); + } +};