<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('contact_message_attachments', function (Blueprint $table) {
            $table->string('evidence_status', 16)->nullable()->after('extracted_text');
            $table->boolean('evidence_is_dsar_doc')->nullable()->after('evidence_status');
        });
    }

    public function down(): void
    {
        Schema::table('contact_message_attachments', function (Blueprint $table) {
            $table->dropColumn(['evidence_status', 'evidence_is_dsar_doc']);
        });
    }
};
