<?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('variety_variations', function (Blueprint $table) {
            // If it’s currently ENUM, change it to string
            $table->string('color', 50)->change();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('variety_variations', function (Blueprint $table) {
            // Optional: revert to original definition if needed
            // $table->enum('color', ['green', 'blue', 'yellow', 'red'])->change();
        });
    }
};
