Files
wyczarujprezent.pl/modules/ecsgtmpro/upgrade/upgrade-1.1.2.php
2024-10-28 22:14:22 +01:00

30 lines
1.0 KiB
PHP

<?php
/**
* 2022 ECSoft
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to dev.ecsoft@gmail.com so we can send you a copy immediately.
*
* @author ECSoft <dev.ecsoft@gmail.com>
* @copyright 2022 ECSoft
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of ECSoft
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_1_2($module)
{
$sql = 'UPDATE `' . _DB_PREFIX_ . 'tab` SET id_parent = ' . Tab::getIdFromClassName('AdminParentOrders') . ' WHERE `class_name` = "AdminEcsGtmProOrders"';
Db::getInstance()->execute($sql);
$module->createMissingGtmOrderLogs();
return true;
}