Commit du module Colissimo
This commit is contained in:
2
local/modules/SoColissimo/Config/update/sql/1.2.5.sql
Normal file
2
local/modules/SoColissimo/Config/update/sql/1.2.5.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `socolissimo_price`
|
||||
ADD COLUMN `franco_min_price` FLOAT AFTER `weight_max`;
|
||||
2
local/modules/SoColissimo/Config/update/sql/1.3.1.sql
Normal file
2
local/modules/SoColissimo/Config/update/sql/1.3.1.sql
Normal 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;
|
||||
56
local/modules/SoColissimo/Config/update/sql/1.4.2.sql
Normal file
56
local/modules/SoColissimo/Config/update/sql/1.4.2.sql
Normal 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;
|
||||
2
local/modules/SoColissimo/Config/update/sql/1.4.3.sql
Normal file
2
local/modules/SoColissimo/Config/update/sql/1.4.3.sql
Normal 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;
|
||||
Reference in New Issue
Block a user