// fix about upgrader and position in category_shop

This commit is contained in:
vChabot committed 2012-02-14 16:54:22 +00:00
1 parent 384ba5b43c
commit cc344f3639
2 files changed
+2 -1

No files matched your search

-1
View File
@@ -23,7 +23,6 @@ WHERE `name` = "order fenced" AND id_lang = 2;
CREATE TABLE `PREFIX_category_shop` ( CREATE TABLE `PREFIX_category_shop` (
`id_category` int(11) NOT NULL, `id_category` int(11) NOT NULL,
`id_shop` int(11) NOT NULL, `id_shop` int(11) NOT NULL,
`position` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id_category`, `id_shop`), PRIMARY KEY (`id_category`, `id_shop`),
UNIQUE KEY `id_category_shop` (`id_category`,`id_shop`) UNIQUE KEY `id_category_shop` (`id_category`,`id_shop`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
+2
View File
@@ -25,3 +25,5 @@ CREATE TABLE `PREFIX_module_preference` (
PRIMARY KEY (`id_module_preference`), PRIMARY KEY (`id_module_preference`),
UNIQUE KEY `employee_module` (`id_employee`, `module`) UNIQUE KEY `employee_module` (`id_employee`, `module`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
ALTER TABLE `PREFIX_category_shop` ADD `position` int(10) unsigned NOT NULL default 0 AFTER `id_shop`;