add promo column in cart_item

This commit is contained in:
Manuel Raynaud
2013-09-16 10:16:54 +02:00
parent 71c1cee66d
commit 5e3c10cd4f
5 changed files with 1300 additions and 1187 deletions

View File

@@ -45,7 +45,7 @@ CREATE TABLE `product`
PRIMARY KEY (`id`),
UNIQUE INDEX `ref_UNIQUE` (`ref`),
INDEX `idx_product_tax_rule_id` (`tax_rule_id`),
INDEX `fk_product_template1_idx` (`template_id`),
INDEX `fk_product_template_id` (`template_id`),
CONSTRAINT `fk_product_tax_rule_id`
FOREIGN KEY (`tax_rule_id`)
REFERENCES `tax_rule` (`id`)
@@ -1198,6 +1198,7 @@ CREATE TABLE `cart_item`
`promo_price` FLOAT,
`price_end_of_life` DATETIME,
`discount` FLOAT DEFAULT 0,
`promo` INTEGER,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`),