<?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('administradores', function (Blueprint $table) {
            $table->string('pregunta_secreta_hash')->nullable()->after('correo');
            $table->string('respuesta_secreta_hash')->nullable()->after('pregunta_secreta_hash');
        });
    }

    public function down(): void
    {
        Schema::table('administradores', function (Blueprint $table) {
            $table->dropColumn(['pregunta_secreta_hash', 'respuesta_secreta_hash']);
        });
    }
};
