<?php
/**
 * 2021 Anvanto
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 wesite only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 *  @author Anvanto <anvantoco@gmail.com>
 *  @copyright  2021 Anvanto
 *  @license    Valid for 1 website (or project) for each purchase of license
 *  International Registered Trademark & Property of Anvanto
 */

if (!defined('_PS_VERSION_')) {
    exit;
}

function upgrade_module_1_0_24($object, $install = false)
{
    $sql = array();


    $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'anmegamenu_groups` (
        `id_group` int(10) NOT NULL,
        `id_anmenu` int(10) NOT NULL,
        PRIMARY KEY(`id_group`, `id_anmenu`)
    ) ENGINE = ' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET = utf8';

    foreach ($sql as $_sql) {
        Db::getInstance()->Execute($_sql);
    }

    return true;
}
