feat:sales_partners 테이블에 상호/사업자등록번호/주소 컬럼 추가
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user