* @copyright 2022 idnovate.com * @license See above */ function upgrade_module_1_1_11($module) { $columnExists = Db::getInstance()->getRow( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '"._DB_NAME_."' AND TABLE_NAME = '"._DB_PREFIX_."advancedpopup' AND COLUMN_NAME = 'schedule'" ); if (!$columnExists) { $query = "ALTER TABLE `" . _DB_PREFIX_ . "advancedpopup` ADD `schedule` text NULL AFTER `date_end`, ADD `attributes` text NULL AFTER `languages`, ADD `features` text NULL AFTER `attributes`;"; Db::getInstance()->execute($query); } $module::clearCache(); return true; }