[-] IN : Remove fails on upgrade coming to loop when upgrading again

This commit is contained in:
gRoussac
2013-09-08 17:29:00 +02:00
parent 19a6c4373e
commit 683513a9d2
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,4 +1,7 @@
SET NAMES 'utf8';
DROP TABLE IF EXISTS `PREFIX_group_shop`;
CREATE TABLE IF NOT EXISTS `PREFIX_group_shop` (
`id_group_shop` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) CHARACTER SET utf8 NOT NULL,
+2
View File
@@ -4,6 +4,8 @@
UPDATE `PREFIX_meta` SET `page` = 'contact' WHERE `page` = 'contact-form';
DROP TABLE IF EXISTS `PREFIX_shop_group`;
RENAME TABLE `PREFIX_group_shop` TO `PREFIX_shop_group`;
ALTER TABLE `PREFIX_shop_group` CHANGE `id_group_shop` `id_shop_group` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_shop` CHANGE `id_group_shop` `id_shop_group` INT( 11 ) UNSIGNED NOT NULL;