From 4fa1248d15d12818b414ffc0cdb3ccd4c2c01390 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 11 Dec 2020 16:53:03 +0100 Subject: [PATCH] Fix avoid duplicate rows after double migration --- htdocs/install/mysql/migration/12.0.0-13.0.0.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql index 1d8c7a37b95..6c3c6e04acb 100644 --- a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql +++ b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql @@ -546,9 +546,9 @@ CREATE TABLE llx_session( )ENGINE=innodb; - -INSERT INTO llx_boxes_def(file,entity) VALUES ('box_funnel_of_prospection.php',1); - -INSERT INTO llx_boxes_def(file, entity) VALUES ('box_customers_outstanding_bill_reached.php', 1); +-- VMYSQL4.1 INSERT INTO llx_boxes_def (file, entity) SELECT 'box_funnel_of_prospection.php', 1 FROM DUAL WHERE NOT EXISTS (SELECT * FROM llx_boxes_def WHERE file = 'box_funnel_of_prospection.php' AND entity = 1); +-- VMYSQL4.1 INSERT INTO llx_boxes_def (file, entity) SELECT 'box_customers_outstanding_bill_reached.php', 1 FROM DUAL WHERE NOT EXISTS (SELECT * FROM llx_boxes_def WHERE file = 'box_customers_outstanding_bill_reached.php' AND entity = 1); +--INSERT INTO llx_boxes_def(file, entity) VALUES ('box_funnel_of_prospection.php',1); +--INSERT INTO llx_boxes_def(file, entity) VALUES ('box_customers_outstanding_bill_reached.php', 1); ALTER TABLE llx_product_fournisseur_price ADD COLUMN packaging varchar(64); \ No newline at end of file