<?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
    {
        // For SQLite compatibility, we'll use a different approach
        Schema::table('job_cards', function (Blueprint $table) {
            // In SQLite, we can't modify enum directly, so we'll just add a comment
            // The model validation will handle the constraint
            $table->string('status')->default('received')->change();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('job_cards', function (Blueprint $table) {
            $table->string('status')->default('received')->change();
        });
    }
};
