From 3dcf762b20c16850cff7c61ac74e4bf0850ffa42 Mon Sep 17 00:00:00 2001
From: M.Gergo
Date: Wed, 26 Aug 2020 14:20:03 +0200
Subject: Rev: 4672

---
 mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql

(limited to 'mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql')

diff --git a/mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql b/mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql
new file mode 100644
index 00000000..6fc53da7
--- /dev/null
+++ b/mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql
@@ -0,0 +1,14 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_4671 $$
+
+CREATE PROCEDURE upgrade_database_4671()
+BEGIN
+SET NAMES utf8 COLLATE utf8_hungarian_ci;
+
+IF EXISTS (SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='tanar' and COLUMN_NAME='viseltNevElotag') THEN
+    ALTER TABLE `tanar` MODIFY `viseltNevElotag` varchar(8) COLLATE utf8_hungarian_ci DEFAULT NULL;
+END IF;
+
+END $$
+DELIMITER ;
+CALL upgrade_database_4671();
-- 
cgit v1.2.3

