<?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('pension_cases', function (Blueprint $table) {
            $table->boolean('vulnerable_client_flag_2')->default(false)->after('vulnerable_client_details');
            $table->boolean('special_contact_requirements_flag_2')->default(false)->after('special_contact_requirements_details');
        });
    }

    public function down(): void {
        Schema::table('pension_cases', function (Blueprint $table) {
            $table->dropColumn(['vulnerable_client_flag_2', 'special_contact_requirements_flag_2']);
        });
    }
};
