From be923d8f56784fca22920f374e183b6f70a081bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Billiras?= Date: Thu, 24 Apr 2014 10:28:59 +0200 Subject: [PATCH] Change index from position to activate following issue comment [https://github.com/thelia/thelia/pull/332#issuecomment-41174056] --- local/config/schema.xml | 4 ++-- setup/thelia.sql | 2 +- setup/update/2.0.1.sql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/local/config/schema.xml b/local/config/schema.xml index 76691e422..5607438d1 100644 --- a/local/config/schema.xml +++ b/local/config/schema.xml @@ -728,8 +728,8 @@ - - + + diff --git a/setup/thelia.sql b/setup/thelia.sql index 02177f0f1..3ff2547b0 100644 --- a/setup/thelia.sql +++ b/setup/thelia.sql @@ -867,7 +867,7 @@ CREATE TABLE `module` `updated_at` DATETIME, PRIMARY KEY (`id`), UNIQUE INDEX `code_UNIQUE` (`code`), - INDEX `idx_module_position` (`position`) + INDEX `idx_module_activate` (`activate`) ) ENGINE=InnoDB CHARACTER SET='utf8'; -- --------------------------------------------------------------------- diff --git a/setup/update/2.0.1.sql b/setup/update/2.0.1.sql index 8e3192226..093ba7510 100644 --- a/setup/update/2.0.1.sql +++ b/setup/update/2.0.1.sql @@ -6,7 +6,7 @@ UPDATE `config` SET `value`='2.0.1' WHERE `name`='thelia_version'; UPDATE `config` SET `value`='' WHERE `name`='thelia_extra_version'; -ALTER TABLE `module` ADD INDEX `idx_module_position` (`position`); +ALTER TABLE `module` ADD INDEX `idx_module_activate` (`activate`); SET FOREIGN_KEY_CHECKS = 1;