<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        DB::statement('ALTER TABLE impersonation_tokens ADD COLUMN IF NOT EXISTS session_token_hash VARCHAR(255)');
    }

    public function down(): void
    {
        DB::statement('ALTER TABLE impersonation_tokens DROP COLUMN IF EXISTS session_token_hash');
    }
};
