Ajout du module CustomDelivery v 1.0.7 (avant le AbstractDeliveryModuleWithState)

This commit is contained in:
2023-12-08 16:24:23 +01:00
parent c30f59d2e4
commit 4e8ac75bad
32 changed files with 4418 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- custom_delivery_slice
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `custom_delivery_slice`;
CREATE TABLE `custom_delivery_slice`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`area_id` INTEGER NOT NULL,
`price_max` FLOAT DEFAULT 0,
`weight_max` FLOAT DEFAULT 0,
`price` FLOAT DEFAULT 0,
PRIMARY KEY (`id`),
INDEX `FI_area_id` (`area_id`),
CONSTRAINT `fk_area_id`
FOREIGN KEY (`area_id`)
REFERENCES `area` (`id`)
ON UPDATE RESTRICT
ON DELETE CASCADE
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;