<?php

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

return new class extends Migration
{
    public function up(): void
    {
        DB::statement("ALTER TABLE certificates MODIFY status ENUM('pending','generating','generated','emailed','downloaded','failed') NOT NULL DEFAULT 'pending'");
    }

    public function down(): void
    {
        DB::statement("ALTER TABLE certificates MODIFY status ENUM('pending','generating','generated','emailed','failed') NOT NULL DEFAULT 'pending'");
    }
};
