Files
ws_customhtml/upgrade/upgrade-1.15.0.php
T

22 lines
471 B
PHP

<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_15_0($module)
{
$existing = Db::getInstance()->executeS(
'SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'ws_customhtml` LIKE \'link_text\''
);
if (!empty($existing)) {
return true;
}
return Db::getInstance()->execute(
'ALTER TABLE `' . _DB_PREFIX_ . 'ws_customhtml`
ADD COLUMN `link_text` VARCHAR(128) NOT NULL DEFAULT \'\' AFTER `link`'
);
}