* @copyright 2018 Sakis Gkiokas * @license https://opensource.org/licenses/GPL-3.0 GNU General Public License version 3 */ if (!defined('_PS_VERSION_')) { exit; } function upgrade_module_1_1_2($object) { $ret = true; $ret &= Configuration::updateValue('SG_CODWFEEPLUS_ORDERSTATE', Configuration::get('PS_OS_PREPARATION')); $ret &= Db::getInstance()->execute(' ALTER TABLE `' . _DB_PREFIX_ . 'codwfeeplus_conditions` ADD `codwfeeplus_orderstate_id` int(2) unsigned NOT NULL DEFAULT \'0\' AFTER `codwfeeplus_taxrule_id` '); return $ret; }