update schema including new indexes
This commit is contained in:
@@ -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`)
|
||||
|
||||
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user