<?php

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

return new class extends Migration
{
    private const MENU_CODE = 'adminapp.desfile.entradas';

    public function up(): void
    {
        DB::table('menues')
            ->where('code', self::MENU_CODE)
            ->update([
                'route' => '/admin/desfile/entradas',
                'updated_at' => now(),
            ]);
    }

    public function down(): void
    {
        DB::table('menues')
            ->where('code', self::MENU_CODE)
            ->update([
                'route' => '/admin/entradas',
                'updated_at' => now(),
            ]);
    }
};
