aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update
diff options
context:
space:
mode:
authorM.Gergo2020-08-26 14:20:03 +0200
committerM.Gergo2020-08-26 14:20:03 +0200
commit3dcf762b20c16850cff7c61ac74e4bf0850ffa42 (patch)
tree0cb6267194b32498a99fa8a65dc39a8c07b43a33 /mayor-orig/mayor-naplo/update
parente22bbedcf69ea347a103d04d194136b8f3a761c8 (diff)
downloadmayor-3dcf762b20c16850cff7c61ac74e4bf0850ffa42.tar.gz
mayor-3dcf762b20c16850cff7c61ac74e4bf0850ffa42.zip
Rev: 4672rev4672
Diffstat (limited to 'mayor-orig/mayor-naplo/update')
-rw-r--r--mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql14
1 files changed, 14 insertions, 0 deletions
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();