aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql
diff options
context:
space:
mode:
authorM.Gergo2019-07-29 09:22:06 +0200
committerM.Gergo2019-07-29 09:22:06 +0200
commitc4a95f32d1153730b09ffbbf19ea775e6bf2f3ba (patch)
tree1a37dad6f90f9a7e46a5b7c987e91394caf414b1 /mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql
parent389e70b9aff181663269ab3e7ca3c16ab58f3e0f (diff)
downloadmayor-c4a95f32d1153730b09ffbbf19ea775e6bf2f3ba.tar.gz
mayor-c4a95f32d1153730b09ffbbf19ea775e6bf2f3ba.zip
Rev: 4524rev4524
Diffstat (limited to 'mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql')
-rw-r--r--mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql b/mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql
new file mode 100644
index 00000000..c0fd84cd
--- /dev/null
+++ b/mayor-orig/mayor-naplo/update/pre004523-1-intezmeny.sql
@@ -0,0 +1,15 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_4523 $$
+
+CREATE PROCEDURE upgrade_database_4523()
+BEGIN
+SET NAMES utf8 COLLATE utf8_hungarian_ci;
+
+-- https://tasz.hu/cikkek/igy-vedd-meg-a-gyermeked-az-allamositastol
+
+ALTER TABLE `diakJogviszony` MODIFY `statusz` enum('felvételt nyert','jogviszonyban van','magántanuló','egyéni munkarend','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva') COLLATE utf8_hungarian_ci NOT NULL;
+ALTER TABLE `diak` MODIFY `statusz` enum('felvételt nyert','jogviszonyban van','magántanuló','egyéni munkarend','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva') COLLATE utf8_hungarian_ci NOT NULL;
+
+END $$
+DELIMITER ;
+CALL upgrade_database_4523();