From c48fbdde9df8660700d2481fd286764a346c8e41 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Sat, 19 May 2012 18:54:24 +0000 Subject: [PATCH] // fix PREFIX_table missing --- .../php/add_column_order_state_deleted_if_not_exists.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }