<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        // Modify the enum to include 'split' option
        DB::statement("ALTER TABLE immigo_pro_subscriptions MODIFY COLUMN payment_plan ENUM('full', 'split', '3month', '6month', '12month') NOT NULL");
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        // Revert back to original enum values
        DB::statement("ALTER TABLE immigo_pro_subscriptions MODIFY COLUMN payment_plan ENUM('full', '3month', '6month', '12month') NOT NULL");
    }
};
