<?php

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

return new class extends Migration
{
    /**
     * إصلاح عمود status في trip_requests - حل خطأ Data truncated
     * يعمل بدون doctrine/dbal (مطلوب لـ change())
     */
    public function up(): void
    {
        DB::statement("ALTER TABLE trip_requests MODIFY COLUMN status VARCHAR(50) NOT NULL DEFAULT 'pending'");
    }

    public function down(): void
    {
        DB::statement("ALTER TABLE trip_requests MODIFY COLUMN status VARCHAR(20) NOT NULL DEFAULT 'pending'");
    }
};
