diff options
Diffstat (limited to 'mayor-orig/update/pre002564-2-intezmeny.sql')
-rw-r--r-- | mayor-orig/update/pre002564-2-intezmeny.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mayor-orig/update/pre002564-2-intezmeny.sql b/mayor-orig/update/pre002564-2-intezmeny.sql new file mode 100644 index 00000000..6a932e79 --- /dev/null +++ b/mayor-orig/update/pre002564-2-intezmeny.sql @@ -0,0 +1,4 @@ +ALTER TABLE `targy` ADD kirTargyId smallint(5) unsigned DEFAULT NULL; +ALTER TABLE `targy` ADD CONSTRAINT FOREIGN KEY `targy_ibfk_2` (`kirTargyId`) REFERENCES `mayor_naplo`.`kirTargy` (`kirTargyId`) ON DELETE SET NULL ON UPDATE CASCADE; +ALTER TABLE `osztaly` ADD kirOsztalyJellegId tinyint(3) UNSIGNED DEFAULT NULL; +ALTER TABLE `osztaly` ADD CONSTRAINT FOREIGN KEY `osztaly_ibfk_1` (`kirOsztalyJellegId`) REFERENCES `mayor_naplo`.`kirOsztalyJelleg` (`kirOsztalyJellegId`) ON DELETE SET NULL ON UPDATE CASCADE; |