<?php

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

return new class extends Migration
{
    public function up(): void
    {
        // Add footer_customer_policy to the position ENUM
        DB::statement("ALTER TABLE navigation_menus MODIFY COLUMN position ENUM('header','mobile','sticky_bar','footer','top_bar','footer_policies','footer_customer_policy') NOT NULL DEFAULT 'header'");
    }

    public function down(): void
    {
        DB::statement("ALTER TABLE navigation_menus MODIFY COLUMN position ENUM('header','mobile','sticky_bar','footer','top_bar','footer_policies') NOT NULL DEFAULT 'header'");
    }
};
