diff options
author | M.Gergo | 2020-08-26 14:20:03 +0200 |
---|---|---|
committer | M.Gergo | 2020-08-26 14:20:03 +0200 |
commit | 3dcf762b20c16850cff7c61ac74e4bf0850ffa42 (patch) | |
tree | 0cb6267194b32498a99fa8a65dc39a8c07b43a33 /mayor-orig/mayor-naplo/update | |
parent | e22bbedcf69ea347a103d04d194136b8f3a761c8 (diff) | |
download | mayor-rev4672.tar.gz mayor-rev4672.zip |
Rev: 4672rev4672
Diffstat (limited to 'mayor-orig/mayor-naplo/update')
-rw-r--r-- | mayor-orig/mayor-naplo/update/pre004671-1-intezmeny.sql | 14 |
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(); |