update schema including new indexes

This commit is contained in:
Manuel Raynaud
2014-03-06 11:51:55 +01:00
parent d37d9027c5
commit cd51895366
3 changed files with 63 additions and 4 deletions

View File

@@ -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`)