[-] MO : MailAlerts module upgraded for PrestaShop 1.5
This commit is contained in:
1 parent
2682430122
commit
accafe14cb
20 files changed
+956
-492
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
function update_mailalerts_add_column_idshop()
|
||||
{
|
||||
$id_mailalerts = Db::getInstance()->getValue('SELECT id_module FROM `'._DB_PREFIX_.'module` WHERE name = "mailalerts"');
|
||||
|
||||
if($id_mailalerts)
|
||||
$res = Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'mailalert_customer_oos` ADD COLUMN `id_shop` int(11) NOT NULL default "0" AFTER `id_customer`');
|
||||
if ($res)
|
||||
return true;
|
||||
else
|
||||
return array('error' => 1, 'msg' => sprintf('unable to create column id_shop (%s)', Db::getInstance ()->getMsgError()));
|
||||
}
|
||||
Reference in new issue
Block a user