From c0f79397dd75e03a7a40303f82926e8187697d07 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 23:32:47 +0100 Subject: Rev: 4455 --- .../update/pre003980-1-mayor_fenntarto.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mayor-orig/mayor-fenntarto/update/pre003980-1-mayor_fenntarto.sql (limited to 'mayor-orig/mayor-fenntarto/update') diff --git a/mayor-orig/mayor-fenntarto/update/pre003980-1-mayor_fenntarto.sql b/mayor-orig/mayor-fenntarto/update/pre003980-1-mayor_fenntarto.sql new file mode 100644 index 00000000..88ae258e --- /dev/null +++ b/mayor-orig/mayor-fenntarto/update/pre003980-1-mayor_fenntarto.sql @@ -0,0 +1,19 @@ +DELIMITER $$ +DROP PROCEDURE IF EXISTS upgrade_database_3980 $$ +CREATE PROCEDURE upgrade_database_3980() +BEGIN + +SET NAMES utf8 COLLATE utf8_hungarian_ci; + +-- IF EXISTS ( +-- SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='osztalyJelleg' AND COLUMN_NAME='erettsegizo' +-- ) THEN +-- END IF; + +ALTER TABLE rpcKerelem ADD CONSTRAINT `nodeId_login` FOREIGN KEY (`nodeId`) REFERENCES `mayor_login`.`mayorKeychain` (`nodeId`) ON DELETE CASCADE ON UPDATE CASCADE; + +END $$ +DELIMITER ; +CALL upgrade_database_3980(); + + -- cgit v1.2.3