Load modules by position
This commit is contained in:
@@ -866,7 +866,8 @@ CREATE TABLE `module`
|
||||
`created_at` DATETIME,
|
||||
`updated_at` DATETIME,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE INDEX `code_UNIQUE` (`code`)
|
||||
UNIQUE INDEX `code_UNIQUE` (`code`),
|
||||
INDEX `idx_module_position` (`position`)
|
||||
) ENGINE=InnoDB CHARACTER SET='utf8';
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
12
setup/update/2.0.1.sql
Normal file
12
setup/update/2.0.1.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
# This is a fix for InnoDB in MySQL >= 4.1.x
|
||||
# It "suspends judgement" for fkey relationships until are tables are set.
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
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`);
|
||||
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user