From d007e4f218cd34ce823b9a45e68ce1904e4e7bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Mon, 25 Nov 2024 17:53:44 +0000 Subject: [PATCH] Actualizar db/versions/11363-silverCarnation/00-firstScript.sql --- db/versions/11363-silverCarnation/00-firstScript.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/versions/11363-silverCarnation/00-firstScript.sql b/db/versions/11363-silverCarnation/00-firstScript.sql index b9595bab3..8c2e68ff4 100644 --- a/db/versions/11363-silverCarnation/00-firstScript.sql +++ b/db/versions/11363-silverCarnation/00-firstScript.sql @@ -1,7 +1,7 @@ -ALTER TABLE vn.workCenterCommission ADD deliveryM3Cat4 DECIMAL(5,2) DEFAULT NULL NULL; -ALTER TABLE vn.workCenterCommission ADD deliveryM3Cat5 DECIMAL(5,2) DEFAULT NULL NULL; +ALTER TABLE vn.workCenterCommission ADD IF NOT EXISTS deliveryM3Cat4 DECIMAL(5,2) DEFAULT NULL NULL; +ALTER TABLE vn.workCenterCommission ADD IF NOT EXISTS deliveryM3Cat5 DECIMAL(5,2) DEFAULT NULL NULL; -INSERT INTO vn.workCenterCommission (workCenterFk, deliveryM3Cat4, deliveryM3Cat5) +INSERT IGNORE INTO vn.workCenterCommission (workCenterFk, deliveryM3Cat4, deliveryM3Cat5) VALUES (5,8.0,8.0);