diff --git a/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php b/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php new file mode 100644 index 0000000..2b28fe5 --- /dev/null +++ b/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php @@ -0,0 +1,24 @@ +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'); + }); + } +};