<?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_sign_fields', function (Blueprint $table) {
            $table->unsignedSmallInteger('font_size')->nullable()->after('field_label')->comment('폰트 크기 (pt)');
        });

        Schema::table('esign_field_template_items', function (Blueprint $table) {
            $table->unsignedSmallInteger('font_size')->nullable()->after('field_label')->comment('폰트 크기 (pt)');
        });
    }

    public function down(): void
    {
        Schema::table('esign_sign_fields', function (Blueprint $table) {
            $table->dropColumn('font_size');
        });

        Schema::table('esign_field_template_items', function (Blueprint $table) {
            $table->dropColumn('font_size');
        });
    }
};
