feat:E-Sign 필드 템플릿 category 컬럼 추가 마이그레이션

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-12 18:54:58 +09:00
parent 57879f7673
commit a13e694174

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('esign_field_templates', function (Blueprint $table) {
$table->string('category', 50)->nullable()->after('description')->comment('템플릿 카테고리');
$table->index('category', 'idx_esign_field_templates_category');
});
}
public function down(): void
{
Schema::table('esign_field_templates', function (Blueprint $table) {
$table->dropIndex('idx_esign_field_templates_category');
$table->dropColumn('category');
});
}
};