diff --git a/install/thelia.sql b/install/thelia.sql
index 030520ed6..0bb823937 100644
--- a/install/thelia.sql
+++ b/install/thelia.sql
@@ -377,8 +377,8 @@ CREATE TABLE `product_sale_elements`
`updated_at` DATETIME,
PRIMARY KEY (`id`),
INDEX `idx_product_sale_element_product_id` (`product_id`),
- INDEX `ref` (`ref`),
INDEX `idx_product_elements_product_id_promo_is_default` (`product_id`, `promo`, `is_default`),
+ INDEX `ref` (`ref`),
CONSTRAINT `fk_product_sale_element_product_id`
FOREIGN KEY (`product_id`)
REFERENCES `product` (`id`)
diff --git a/install/update/2.0.0.sql b/install/update/2.0.0.sql
index 1c0fa61cc..d3c76ff94 100644
--- a/install/update/2.0.0.sql
+++ b/install/update/2.0.0.sql
@@ -17,6 +17,7 @@ ALTER TABLE `product_image` ADD INDEX `idx_product_image_product_id_position` (`
ALTER TABLE `category_image` ADD INDEX `idx_category_image_category_id_position` (`category_id`, `position`);
ALTER TABLE `content_image` ADD INDEX `idx_content_image_content_id_position` (`content_id`, `position`);
ALTER TABLE `folder_image` ADD INDEX `idx_folder_image_folder_id_position` (`folder_id`, `position`);
+ALTER TABLE `module_image` ADD INDEX `idx_module_image_module_id_position` (`module_id`, `position`)
ALTER TABLE `rewriting_url` ADD INDEX `idx_rewriting_url_view_updated_at` (`view`, `updated_at`);
ALTER TABLE `rewriting_url` ADD INDEX `idx_rewriting_url_view_id_view_view_locale_updated_at` (`view_id`, `view`, `view_locale`, `updated_at`);
diff --git a/local/config/schema.xml b/local/config/schema.xml
index a0f2951d2..7e9341bf4 100644
--- a/local/config/schema.xml
+++ b/local/config/schema.xml
@@ -109,6 +109,9 @@
+
+
+
@@ -158,6 +161,11 @@
+
+
+
+
+
@@ -217,6 +225,11 @@
+
+
+
+
+
@@ -236,6 +249,10 @@
+
+
+
+
@@ -309,6 +326,11 @@
+
+
+
+
+
@@ -439,6 +461,9 @@
+
+
+
@@ -497,6 +522,10 @@
+
+
+
+
@@ -601,6 +630,12 @@
+
+
+
+
+
+
@@ -1044,6 +1079,10 @@
+
+
+
+
@@ -1064,6 +1103,10 @@
+
+
+
+
@@ -1084,6 +1127,10 @@
+
+
+
+
@@ -1200,12 +1247,19 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -1243,6 +1297,10 @@
+
+
+
+