feat:거래처 테이블에 매출/매입 구분(trade_type) 컬럼 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-13 11:27:37 +09:00
parent 6d4e5b740b
commit 9c19536423
2 changed files with 23 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
<?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('trade_type', 20)->default('sales')->after('name')->comment('매출/매입 구분 (sales/purchase)');
});
}
public function down(): void
{
Schema::table('trading_partners', function (Blueprint $table) {
$table->dropColumn('trade_type');
});
}
};