diff --git a/install-dev/upgrade/php/add_column_order_state_deleted_if_not_exists.php b/install-dev/upgrade/php/add_column_order_state_deleted_if_not_exists.php index 38e236249..c894d4947 100644 --- a/install-dev/upgrade/php/add_column_order_state_deleted_if_not_exists.php +++ b/install-dev/upgrade/php/add_column_order_state_deleted_if_not_exists.php @@ -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; }