diff options
Diffstat (limited to 'mayor-orig/update/pre004125-2-naplo.sql')
-rw-r--r-- | mayor-orig/update/pre004125-2-naplo.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mayor-orig/update/pre004125-2-naplo.sql b/mayor-orig/update/pre004125-2-naplo.sql new file mode 100644 index 00000000..d03dcea0 --- /dev/null +++ b/mayor-orig/update/pre004125-2-naplo.sql @@ -0,0 +1,16 @@ +DELIMITER $$ +DROP PROCEDURE IF EXISTS upgrade_database_4125_2 $$ + +CREATE PROCEDURE upgrade_database_4125_2() +BEGIN +SET NAMES utf8 COLLATE utf8_hungarian_ci; + +IF EXISTS ( + SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='nap' AND COLUMN_NAME='csengetesiRendTipus' +) THEN + ALTER TABLE nap MODIFY csengetesiRendTipus ENUM ('normál','rövidített','speciális','rendhagyó','délutáni','délutáni rövidített','délutáni speciális','délutáni rendhagyó','nincs') DEFAULT 'normál'; +END IF; + +END $$ +DELIMITER ; +CALL upgrade_database_4125_2(); |