<?php

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

return new class extends Migration
{
    public function up(): void
    {
        DB::statement(
            "ALTER TABLE matches MODIFY COLUMN period
             ENUM('pre','first','halftime','second','extra1','extra2','full')
             NOT NULL DEFAULT 'pre'"
        );
    }

    public function down(): void
    {
        DB::statement(
            "ALTER TABLE matches MODIFY COLUMN period
             ENUM('pre','first','halftime','second','full')
             NOT NULL DEFAULT 'pre'"
        );
    }
};
