This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,42 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
if (!defined('_PS_VERSION_'))
exit;
function upgrade_module_1_0_4($module)
{
$sqls= array();
if(!$module->checkCreatedColumn('ets_pr_condition_rule','number_of_product_cal'))
{
$sqls[]= 'ALTER TABLE `'._DB_PREFIX_.'ets_pr_condition_rule` ADD `number_of_product_cal` VARCHAR(10)';
}
if(!$module->checkCreatedColumn('ets_pr_condition_rule','number_of_product'))
{
$sqls[]= 'ALTER TABLE `'._DB_PREFIX_.'ets_pr_condition_rule` ADD `number_of_product` INT(11)';
}
if($sqls)
{
foreach($sqls as $sql)
Db::getInstance()->execute($sql);
}
return true;
}