aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql
diff options
context:
space:
mode:
authorM.Gergo2019-09-02 02:25:31 +0200
committerM.Gergo2019-09-02 02:25:31 +0200
commit4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1 (patch)
tree80cfa850023ac36406512e530ed582201537e518 /mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql
parenta4f28686f7de4a0ca86c2215d28bddb9a378335a (diff)
downloadmayor-rev4535.tar.gz
mayor-rev4535.zip
Rev: 4535rev4535
Diffstat (limited to 'mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql')
-rw-r--r--mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql19
1 files changed, 19 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql b/mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql
new file mode 100644
index 00000000..c616f6d4
--- /dev/null
+++ b/mayor-orig/mayor-naplo/update/pre004531-1-intezmeny.sql
@@ -0,0 +1,19 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_4531 $$
+
+CREATE PROCEDURE upgrade_database_4531()
+BEGIN
+SET NAMES utf8 COLLATE utf8_hungarian_ci;
+
+IF NOT EXISTS (SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='cimke') THEN
+ CREATE TABLE `cimke` (
+ `cimkeId` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `cimkeLeiras` varchar(16) NOT NULL,
+ PRIMARY KEY (`cimkeId`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+END IF;
+
+
+END $$
+DELIMITER ;
+CALL upgrade_database_4531();