aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/update/pre002472-1-intezmeny.sql
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/update/pre002472-1-intezmeny.sql
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz
mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/update/pre002472-1-intezmeny.sql')
-rw-r--r--mayor-orig/update/pre002472-1-intezmeny.sql37
1 files changed, 37 insertions, 0 deletions
diff --git a/mayor-orig/update/pre002472-1-intezmeny.sql b/mayor-orig/update/pre002472-1-intezmeny.sql
new file mode 100644
index 00000000..6c1b41fd
--- /dev/null
+++ b/mayor-orig/update/pre002472-1-intezmeny.sql
@@ -0,0 +1,37 @@
+-- jelenleg 2472
+CREATE TABLE `tanmenet` (
+ `tanmenetId` int(10) unsigned NOT NULL auto_increment,
+ `targyId` smallint(5) unsigned NOT NULL,
+ `evfolyam` tinyint(3) unsigned NOT NULL,
+ `tanmenetNev` varchar(128),
+ `oraszam` smallint unsigned,
+ `dt` DATE NOT NULL,
+ `tanarId` int(10) unsigned NOT NULL,
+ `jovahagyva` tinyint(3) unsigned DEFAULT '0',
+ PRIMARY KEY (`tanmenetId`),
+ CONSTRAINT `tanmenet_ibfk_1` FOREIGN KEY (`targyId`) REFERENCES `targy` (`targyId`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `tanmenet_ibfk_2` FOREIGN KEY (`tanarId`) REFERENCES `tanar` (`tanarId`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+
+CREATE TABLE `tanmenetTemakor` (
+ `tanmenetId` int(10) unsigned NOT NULL,
+ `sorszam` tinyint unsigned NOT NULL,
+ `oraszam` tinyint unsigned NOT NULL,
+ `temakorMegnevezes` varchar(255),
+ PRIMARY KEY (`tanmenetId`, `sorszam` ),
+ CONSTRAINT `tanmenetTemakor_ibfk_1` FOREIGN KEY (`tanmenetId`) REFERENCES `tanmenet` (`tanmenetId`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+
+CREATE TABLE `tanmenetTankor` (
+ `tankorId` int(10) unsigned NOT NULL,
+ `tanev` smallint(5) unsigned NOT NULL,
+ `tanmenetId` int(10) unsigned NOT NULL,
+ KEY `tanmenetTankor_FKIndex1` (`tankorId`),
+ CONSTRAINT `tanmenetTankor_ibfk_1` FOREIGN KEY (`tankorId`) REFERENCES `tankor` (`tankorId`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `tanmenetTankor_ibfk_2` FOREIGN KEY (`tanmenetId`) REFERENCES `tanmenet` (`tanmenetId`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `tanmenetTankor_ibfk_3` FOREIGN KEY (`tanev`) REFERENCES `szemeszter` (`tanev`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+
+alter table idoszak modify
+ `tipus` enum('zárás','bizonyítvány írás','vizsga','előzetes tárgyválasztás','tárgyválasztás','tankörnévsor módosítás','fogadóóra jelentkezés','tanmenet leadás')
+ COLLATE utf8_hungarian_ci DEFAULT NULL; \ No newline at end of file