Changed product_brand fk

This commit is contained in:
Franck Allimant
2014-06-26 15:50:00 +02:00
parent 13e57e332a
commit 65dd2fb129
5 changed files with 11 additions and 9 deletions

View File

@@ -57,11 +57,13 @@ CREATE TABLE `product`
ON DELETE RESTRICT,
CONSTRAINT `fk_product_template`
FOREIGN KEY (`template_id`)
REFERENCES `template` (`id`),
REFERENCES `template` (`id`)
ON DELETE SET NULL,
CONSTRAINT `fk_product_brand`
FOREIGN KEY (`brand_id`)
REFERENCES `brand` (`id`)
ON DELETE SET NULL
ON UPDATE RESTRICT
ON DELETE RESTRICT
) ENGINE=InnoDB;
-- ---------------------------------------------------------------------