feat: [거래처] trading_partners에 registration_type 컬럼 추가

This commit is contained in:
김보곤
2026-03-23 12:40:15 +09:00
parent db1579bfcc
commit 338376503b

View File

@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('trading_partners', function (Blueprint $table) {
$table->string('registration_type', 20)->default('general')->after('trade_type')
->comment('등록구분: general(일반거래처), financial(금융거래처), card(법인카드)');
$table->index(['tenant_id', 'registration_type']);
});
}
public function down(): void
{
Schema::table('trading_partners', function (Blueprint $table) {
$table->dropIndex(['tenant_id', 'registration_type']);
$table->dropColumn('registration_type');
});
}
};