From 57501026d65b84f6fabcd79ff70d37fa9e1531b8 Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 14 Feb 2012 16:54:22 +0000 Subject: [PATCH] // fix about upgrader and position in category_shop --- install-dev/upgrade/sql/1.5.0.4.sql | 1 - install-dev/upgrade/sql/1.5.0.5.sql | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install-dev/upgrade/sql/1.5.0.4.sql b/install-dev/upgrade/sql/1.5.0.4.sql index 493a8d382..d7eccc813 100644 --- a/install-dev/upgrade/sql/1.5.0.4.sql +++ b/install-dev/upgrade/sql/1.5.0.4.sql @@ -23,7 +23,6 @@ WHERE `name` = "order fenced" AND id_lang = 2; CREATE TABLE `PREFIX_category_shop` ( `id_category` int(11) NOT NULL, `id_shop` int(11) NOT NULL, - `position` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id_category`, `id_shop`), UNIQUE KEY `id_category_shop` (`id_category`,`id_shop`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; diff --git a/install-dev/upgrade/sql/1.5.0.5.sql b/install-dev/upgrade/sql/1.5.0.5.sql index d54ef2190..88aeaf672 100644 --- a/install-dev/upgrade/sql/1.5.0.5.sql +++ b/install-dev/upgrade/sql/1.5.0.5.sql @@ -25,3 +25,5 @@ CREATE TABLE `PREFIX_module_preference` ( PRIMARY KEY (`id_module_preference`), UNIQUE KEY `employee_module` (`id_employee`, `module`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; + +ALTER TABLE `PREFIX_category_shop` ADD `position` int(10) unsigned NOT NULL default 0 AFTER `id_shop`; \ No newline at end of file