Il manquait quelques fichiers dans Git
This commit is contained in:
10
local/modules/CreditNote/Config/Update/sql/2.1.1.sql
Normal file
10
local/modules/CreditNote/Config/Update/sql/2.1.1.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# 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;
|
||||
|
||||
ALTER TABLE `credit_note` ADD `discount_without_tax` DECIMAL(16,6) DEFAULT 0.000000 AFTER `total_price_with_tax`, ADD `discount_with_tax` DECIMAL(16,6) DEFAULT 0.000000 AFTER `discount_without_tax`;
|
||||
ALTER TABLE `credit_note_version` ADD `discount_without_tax` DECIMAL(16,6) DEFAULT 0.000000 AFTER `total_price_with_tax`, ADD `discount_with_tax` DECIMAL(16,6) DEFAULT 0.000000 AFTER `discount_without_tax`;
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
16
local/modules/CreditNote/Config/Update/sql/2.1.3.sql
Normal file
16
local/modules/CreditNote/Config/Update/sql/2.1.3.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# 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;
|
||||
|
||||
SELECT @max_id := IFNULL(MAX(`id`),0) FROM `credit_note_type`;
|
||||
|
||||
INSERT INTO `credit_note_type` (`id`, `code`, `position`, `color`, `required_order`, `created_at`, `updated_at`) VALUES
|
||||
(@max_id+1, 'difference_refund', @max_id+1, '#CF7973', 0, NOW(), NOW());
|
||||
|
||||
INSERT INTO `credit_note_type_i18n` (`id`, `locale`, `title`, `description`, `chapo`, `postscriptum`) VALUES
|
||||
(@max_id+1, 'en_US', 'Difference refund', '', '', ''),
|
||||
(@max_id+1, 'fr_FR', 'Remboursement de la différence', '', '', '');
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
18
local/modules/CreditNote/Config/Update/sql/2.3.4.sql
Normal file
18
local/modules/CreditNote/Config/Update/sql/2.3.4.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
# 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;
|
||||
|
||||
ALTER TABLE credit_note
|
||||
DROP COLUMN version;
|
||||
|
||||
ALTER TABLE credit_note
|
||||
DROP COLUMN version_created_at;
|
||||
|
||||
ALTER TABLE credit_note
|
||||
DROP COLUMN version_created_by;
|
||||
|
||||
DROP TABLE IF EXISTS `credit_note_version`;
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user