* @copyright 2022 idnovate.com * @license See above */ function upgrade_module_1_1_20() { $columnExists = Db::getInstance()->getRow( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '"._DB_NAME_."' AND TABLE_NAME = '"._DB_PREFIX_."advancedpopup_lang' AND COLUMN_NAME = 'js'" ); if (!$columnExists) { $query = "ALTER TABLE `" . _DB_PREFIX_ . "advancedpopup_lang` ADD `js` TEXT NULL DEFAULT NULL AFTER `css`;"; Db::getInstance()->execute($query); } return true; }