// fix PREFIX_table missing
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15458 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
817c6e5ff1
commit
87b11b5a89
1 file changed
+3
-1
@@ -29,7 +29,9 @@ function add_column_order_state_deleted_if_not_exists()
|
|||||||
{
|
{
|
||||||
$column = Db::getInstance()->executeS('SHOW FIELDS FROM `'._DB_PREFIX_.'order_state` LIKE "deleted"');
|
$column = Db::getInstance()->executeS('SHOW FIELDS FROM `'._DB_PREFIX_.'order_state` LIKE "deleted"');
|
||||||
if (empty($column))
|
if (empty($column))
|
||||||
return Db::getInstance()->execute('ALTER TABLE `PREFIX_order_state`
|
$res = Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'order_state`
|
||||||
ADD COLUMN `deleted` tinyint(1) UNSIGNED NOT NULL default "0" AFTER `paid`');
|
ADD COLUMN `deleted` tinyint(1) UNSIGNED NOT NULL default "0" AFTER `paid`');
|
||||||
|
if (!$res)
|
||||||
|
return array('error' => Db::getInstance()->getNumberError(), 'msg' => Db::getInstance()->getMsgError());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user