Module DigressivePrice
This commit is contained in:
11
local/modules/DigressivePrice/Config/update-2.0.sql
Normal file
11
local/modules/DigressivePrice/Config/update-2.0.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Update the foreign key to provide automatic delete
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
ALTER TABLE `digressive_price` DROP FOREIGN KEY `fk_product_digressive`;
|
||||
|
||||
ALTER TABLE `digressive_price` ADD CONSTRAINT `fk_product_digressive`
|
||||
FOREIGN KEY (`product_id`)
|
||||
REFERENCES `product` (`id`)
|
||||
ON UPDATE RESTRICT
|
||||
ON DELETE CASCADE;
|
||||
Reference in New Issue
Block a user