feat:sales_partners 테이블에 상호/사업자등록번호/주소 컬럼 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-14 10:48:27 +09:00
parent 2dacefd14f
commit 80c1e4aeae

View File

@@ -0,0 +1,24 @@
<?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('sales_partners', function (Blueprint $table) {
$table->string('company_name', 100)->nullable()->after('notes')->comment('상호');
$table->string('biz_no', 20)->nullable()->after('company_name')->comment('사업자등록번호');
$table->string('address', 255)->nullable()->after('biz_no')->comment('주소');
});
}
public function down(): void
{
Schema::table('sales_partners', function (Blueprint $table) {
$table->dropColumn(['company_name', 'biz_no', 'address']);
});
}
};