privilegedemarque/modules/mailalerts/upgrade/install-2.5.php
Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

19 lines
452 B
PHP
Executable File

<?php
if (!defined('_PS_VERSION_'))
exit;
function upgrade_module_2_5($object)
{
Db::getInstance()->execute('
ALTER TABLE `'._DB_PREFIX_.'mailalert_customer_oos`
ADD `id_lang` INT( 10 ) UNSIGNED NOT NULL
');
Db::getInstance()->execute('
ALTER TABLE `'._DB_PREFIX_.'mailalert_customer_oos`
DROP PRIMARY KEY ,
ADD PRIMARY KEY (`id_customer` , `customer_email` , `id_product` , `id_product_attribute` , `id_shop`)
');
return true;
}