From a50bf390cca05255feebfdce6bb70cdbb6c52733 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Tue, 15 Jun 2021 19:20:05 +0200 Subject: Rev: 4793 --- .../mayor-naplo/update/pre004791-1-intezmeny.sql | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mayor-orig/mayor-naplo/update/pre004791-1-intezmeny.sql (limited to 'mayor-orig/mayor-naplo/update') diff --git a/mayor-orig/mayor-naplo/update/pre004791-1-intezmeny.sql b/mayor-orig/mayor-naplo/update/pre004791-1-intezmeny.sql new file mode 100644 index 00000000..b3786834 --- /dev/null +++ b/mayor-orig/mayor-naplo/update/pre004791-1-intezmeny.sql @@ -0,0 +1,23 @@ +DELIMITER $$ +DROP PROCEDURE IF EXISTS upgrade_database_4791 $$ +CREATE PROCEDURE upgrade_database_4791() +BEGIN + +SET NAMES utf8 COLLATE utf8_hungarian_ci; + +IF EXISTS ( + SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='kepzesOraterv' AND COLUMN_NAME='tipus' +) THEN + + alter table `kepzesOraterv` modify `tipus` + enum('első nyelv','második nyelv','mintatantervi','kötelezően választható 1.','kötelezően választható 2.', + 'szabadon választható 1.','szabadon választható 2.','művészetek','természettudomány') CHARACTER SET utf8 COLLATE utf8_hungarian_ci DEFAULT 'mintatantervi'; + +END IF; + +END $$ +DELIMITER ; +CALL upgrade_database_4791(); + +-- | Warning | 3719 | 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. | +-- | Warning | 3778 | 'utf8_hungarian_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead. -- cgit v1.2.3