<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up()
    {
        Schema::table('workflow_transitions', function (Blueprint $table) {
            $table->boolean('is_end')->default(false)->after('require_file');
        });
    }

    public function down()
    {
        Schema::table('workflow_transitions', function (Blueprint $table) {
            $table->dropColumn('is_end');
        });
    }
};
