aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update
diff options
context:
space:
mode:
authorM.Gergo2020-03-24 18:56:00 +0100
committerM.Gergo2020-03-24 18:56:00 +0100
commit2f93e272054ed126be63db31d33e90f51f09d30e (patch)
tree0344db4e179a6aa9ccf2503d6d6ca25fa39e53d0 /mayor-orig/mayor-naplo/update
parent351ace3031cf063cef346027ae209d218225242a (diff)
downloadmayor-2f93e272054ed126be63db31d33e90f51f09d30e.tar.gz
mayor-2f93e272054ed126be63db31d33e90f51f09d30e.zip
Rev: 4633rev4633
Diffstat (limited to 'mayor-orig/mayor-naplo/update')
-rw-r--r--mayor-orig/mayor-naplo/update/pre004632-1-naplo.sql18
1 files changed, 18 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/update/pre004632-1-naplo.sql b/mayor-orig/mayor-naplo/update/pre004632-1-naplo.sql
new file mode 100644
index 00000000..7a2be452
--- /dev/null
+++ b/mayor-orig/mayor-naplo/update/pre004632-1-naplo.sql
@@ -0,0 +1,18 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_4632 $$
+
+CREATE PROCEDURE upgrade_database_4632()
+BEGIN
+SET NAMES utf8 COLLATE utf8_hungarian_ci;
+
+IF NOT EXISTS (
+ SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='oraHazifeladat' and COLUMN_NAME='hazifeladatFeltoltesEngedely'
+) THEN
+
+ALTER TABLE `oraHazifeladat` ADD `hazifeladatFeltoltesEngedely` tinyint unsigned DEFAULT 0;
+
+END IF;
+
+END $$
+DELIMITER ;
+CALL upgrade_database_4632();