// little fix upgrader
This commit is contained in:
@@ -28,7 +28,6 @@
|
|||||||
function add_column_order_state_deleted_if_not_exists()
|
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"');
|
||||||
error(Db::getInstance()->getMsgError());
|
|
||||||
if (empty($column))
|
if (empty($column))
|
||||||
return Db::getInstance()->execute('ALTER TABLE `PREFIX_order_state`
|
return Db::getInstance()->execute('ALTER TABLE `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`');
|
||||||
|
|||||||
Reference in New Issue
Block a user