<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        \Illuminate\Support\Facades\DB::statement("UPDATE `mainmenu` SET `routes` = 'settings/general||settings/cron||settings/headers/{id?}||email-template||email-template/*||setting/notification||setting/notification/*||settings/api/keys||settings/whitelabel||settings/license||settings/primary/domain||settings/api/keys/{id?}' WHERE `mainmenu`.`id` = 7;");
        \Illuminate\Support\Facades\DB::statement("UPDATE `mainmenu` SET `routes` = 'settings/general' WHERE `mainmenu`.`link` = 'setting.general';");  
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
