From 64056886105f4031b89ccd30f6c4442a35f5a482 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Wed, 13 Mar 2019 07:25:54 +0100 Subject: [PATCH] prevent local sql execution for nst scheme --- db/install/changes/12-department.sql | 6 ++++-- db/install/changes/13-nodeAdd.sql | 5 ++++- db/install/changes/14-nodeRecalc.sql | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/db/install/changes/12-department.sql b/db/install/changes/12-department.sql index 38c68a45c..4203b059e 100644 --- a/db/install/changes/12-department.sql +++ b/db/install/changes/12-department.sql @@ -1,4 +1,6 @@ -USE `vn2008`; +/* Ejecutar en prod * / + +/* USE `vn2008`; ALTER TABLE vn2008.department ADD `depth` int DEFAULT 0 NOT NULL; ALTER TABLE vn2008.department ADD sons int DEFAULT 0 NOT NULL; @@ -18,4 +20,4 @@ VIEW `vn`.`department` AS select `b`.`depth` AS `depth`, `b`.`sons` AS `sons` from - `vn2008`.`department` `b`; \ No newline at end of file + `vn2008`.`department` `b`; */ \ No newline at end of file diff --git a/db/install/changes/13-nodeAdd.sql b/db/install/changes/13-nodeAdd.sql index b3c537548..f3f4381f3 100644 --- a/db/install/changes/13-nodeAdd.sql +++ b/db/install/changes/13-nodeAdd.sql @@ -1,4 +1,6 @@ -DROP PROCEDURE IF EXISTS nst.NodeAdd; +/* Ejecutar en prod * / + +/* DROP PROCEDURE IF EXISTS nst.NodeAdd; DELIMITER $$ $$ @@ -81,3 +83,4 @@ BEGIN CALL util.exec(CONCAT('DROP TEMPORARY TABLE tmp.', vTableClone)); END$$ DELIMITER ; + */ \ No newline at end of file diff --git a/db/install/changes/14-nodeRecalc.sql b/db/install/changes/14-nodeRecalc.sql index a8f4d932c..73f3042c4 100644 --- a/db/install/changes/14-nodeRecalc.sql +++ b/db/install/changes/14-nodeRecalc.sql @@ -1,4 +1,6 @@ -DROP PROCEDURE IF EXISTS nst.nodeRecalc; +/* Ejecutar en prod * / + +/* DROP PROCEDURE IF EXISTS nst.nodeRecalc; DELIMITER $$ $$ @@ -26,3 +28,4 @@ BEGIN )); END$$ DELIMITER ; + */ \ No newline at end of file