aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/update/pre003980-1-mayor_naplo.sql
blob: 7e0a8d2f0866de8f2edd3243d1d7c4722362443b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 rpcJogosultsag ADD CONSTRAINT `nodeId_login` FOREIGN KEY (`nodeId`) REFERENCES `mayor_login`.`mayorKeychain` (`nodeId`) ON DELETE CASCADE ON UPDATE CASCADE;


END $$
DELIMITER ;
CALL upgrade_database_3980();