Commit du module Colissimo

This commit is contained in:
2020-09-09 12:52:39 +02:00
parent de4bc540e4
commit b5d5fd110e
123 changed files with 28431 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE `socolissimo_price`
ADD COLUMN `franco_min_price` FLOAT AFTER `weight_max`;

View File

@@ -0,0 +1,2 @@
ALTER TABLE `socolissimo_price` ADD COLUMN `price_max` FLOAT AFTER `weight_max`;
ALTER TABLE `socolissimo_price` MODIFY `weight_max` FLOAT NULL DEFAULT NULL;

View File

@@ -0,0 +1,56 @@
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- socolissimo_area_freeshipping_dom
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `socolissimo_area_freeshipping_dom`;
CREATE TABLE `socolissimo_area_freeshipping_dom`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`area_id` INTEGER NOT NULL,
`delivery_mode_id` INTEGER NOT NULL,
`cart_amount` DECIMAL(16,6) DEFAULT 0.000000 NOT NULL,
PRIMARY KEY (`id`),
INDEX `FI_socolissimo_area_freeshipping_dom_area_id` (`area_id`),
INDEX `FI_socolissimo_area_freeshipping_dom_delivery_mode_id` (`delivery_mode_id`),
CONSTRAINT `fk_socolissimo_area_freeshipping_dom_area_id`
FOREIGN KEY (`area_id`)
REFERENCES `area` (`id`)
ON UPDATE RESTRICT
ON DELETE RESTRICT,
CONSTRAINT `fk_socolissimo_area_freeshipping_dom_delivery_mode_id`
FOREIGN KEY (`delivery_mode_id`)
REFERENCES `socolissimo_delivery_mode` (`id`)
ON UPDATE RESTRICT
ON DELETE RESTRICT
) ENGINE=InnoDB;
-- ---------------------------------------------------------------------
-- socolissimo_area_freeshipping_pr
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `socolissimo_area_freeshipping_pr`;
CREATE TABLE `socolissimo_area_freeshipping_pr`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`area_id` INTEGER NOT NULL,
`delivery_mode_id` INTEGER NOT NULL,
`cart_amount` DECIMAL(16,6) DEFAULT 0.000000 NOT NULL,
PRIMARY KEY (`id`),
INDEX `FI_socolissimo_area_freeshipping_pr_area_id` (`area_id`),
INDEX `FI_socolissimo_area_freeshipping_pr_delivery_mode_id` (`delivery_mode_id`),
CONSTRAINT `fk_socolissimo_area_freeshipping_pr_area_id`
FOREIGN KEY (`area_id`)
REFERENCES `area` (`id`)
ON UPDATE RESTRICT
ON DELETE RESTRICT,
CONSTRAINT `fk_socolissimo_area_freeshipping_pr_delivery_mode_id`
FOREIGN KEY (`delivery_mode_id`)
REFERENCES `socolissimo_delivery_mode` (`id`)
ON UPDATE RESTRICT
ON DELETE RESTRICT
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,2 @@
ALTER TABLE `socolissimo_area_freeshipping_dom` MODIFY `cart_amount` DECIMAL(16,6) DEFAULT 0.000000 NULL;
ALTER TABLE `socolissimo_area_freeshipping_pr` MODIFY `cart_amount` DECIMAL(16,6) DEFAULT 0.000000 NULL;