Change index from position to activate following issue comment [https://github.com/thelia/thelia/pull/332#issuecomment-41174056]

This commit is contained in:
Jérôme Billiras
2014-04-24 10:28:59 +02:00
parent 87ae693c01
commit be923d8f56
3 changed files with 4 additions and 4 deletions

View File

@@ -728,8 +728,8 @@
<column name="chapo" type="LONGVARCHAR" /> <column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" /> <column name="postscriptum" type="LONGVARCHAR" />
<column name="full_namespace" size="255" type="VARCHAR" /> <column name="full_namespace" size="255" type="VARCHAR" />
<index name="idx_module_position"> <index name="idx_module_activate">
<index-column name="position" /> <index-column name="activate" />
</index> </index>
<unique name="code_UNIQUE"> <unique name="code_UNIQUE">
<unique-column name="code" /> <unique-column name="code" />

View File

@@ -867,7 +867,7 @@ CREATE TABLE `module`
`updated_at` DATETIME, `updated_at` DATETIME,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE INDEX `code_UNIQUE` (`code`), UNIQUE INDEX `code_UNIQUE` (`code`),
INDEX `idx_module_position` (`position`) INDEX `idx_module_activate` (`activate`)
) ENGINE=InnoDB CHARACTER SET='utf8'; ) ENGINE=InnoDB CHARACTER SET='utf8';
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------

View File

@@ -6,7 +6,7 @@ UPDATE `config` SET `value`='2.0.1' WHERE `name`='thelia_version';
UPDATE `config` SET `value`='' WHERE `name`='thelia_extra_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; SET FOREIGN_KEY_CHECKS = 1;