<?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('require_comments')->default(false)->after('user_ids');
            $table->boolean('require_file')->default(false)->after('require_comments');
        });
    }

    public function down()
    {
        Schema::table('workflow_transitions', function (Blueprint $table) {
            $table->dropColumn(['require_comments', 'require_file']);
        });
    }
};
