diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/update/pre004441-1-naplo.sql | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
Diffstat (limited to 'mayor-orig/update/pre004441-1-naplo.sql')
-rw-r--r-- | mayor-orig/update/pre004441-1-naplo.sql | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/mayor-orig/update/pre004441-1-naplo.sql b/mayor-orig/update/pre004441-1-naplo.sql deleted file mode 100644 index c8c47ead..00000000 --- a/mayor-orig/update/pre004441-1-naplo.sql +++ /dev/null @@ -1,39 +0,0 @@ -DELIMITER $$ -DROP PROCEDURE IF EXISTS upgrade_database_4441 $$ - -CREATE PROCEDURE upgrade_database_4441() -BEGIN -SET NAMES utf8 COLLATE utf8_hungarian_ci; - -IF NOT EXISTS ( - SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='hianyzasKreta' -) THEN - CREATE TABLE `hianyzasKreta` ( - `kretaHianyzasId` int(10) unsigned NOT NULL AUTO_INCREMENT, - `diakId` int(10) unsigned DEFAULT NULL, - `tankorId` int(10) unsigned DEFAULT NULL, - `kretaDiakNev` varchar(255) DEFAULT NULL, - `oId` bigint(20) unsigned DEFAULT NULL, - `dt` date DEFAULT NULL, - `ora` tinyint(3) unsigned DEFAULT NULL, - `kretaTankorNev` varchar(255) DEFAULT NULL, - `kretaTantargyNev` varchar(255) DEFAULT NULL, - `tipus` enum('hiányzás','késés','felszerelés hiány','felmentés','egyenruha hiány') COLLATE utf8_hungarian_ci DEFAULT NULL, - `perc` tinyint(3) unsigned DEFAULT NULL, - `kretaStatusz` enum('igen','nem') COLLATE utf8_hungarian_ci DEFAULT NULL, - `statusz` enum('igazolt','igazolatlan') COLLATE utf8_hungarian_ci DEFAULT NULL, - `kretaIgazolas` varchar(255) DEFAULT NULL, - `igazolas` enum('orvosi','szülői','osztályfőnöki','verseny','vizsga','igazgatói','hatósági','pályaválasztás','') COLLATE utf8_hungarian_ci DEFAULT NULL, - PRIMARY KEY (`kretaHianyzasId`), - KEY `hianyzasKreta_oId` (`oId`), - KEY `hianyzasKreta_diakId` (`diakId`), - KEY `hianyzasKreta_tankorId` (`tankorId`), - CONSTRAINT `hk_ibfk_1` FOREIGN KEY (`oId`) REFERENCES %INTEZMENYDB%.`diak` (`oId`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `hk_ibfk_2` FOREIGN KEY (`diakId`) REFERENCES %INTEZMENYDB%.`diak` (`diakId`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `hk_ibfk_3` FOREIGN KEY (`tankorId`) REFERENCES %INTEZMENYDB%.`tankor` (`tankorId`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci; -END IF; - -END $$ -DELIMITER ; -CALL upgrade_database_4441(); |