// fix PREFIX_table missing
This commit is contained in:
@@ -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"');
|
||||
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`');
|
||||
if (!$res)
|
||||
return array('error' => Db::getInstance()->getNumberError(), 'msg' => Db::getInstance()->getMsgError());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user