aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql')
-rw-r--r--mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql27
1 files changed, 27 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql b/mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql
new file mode 100644
index 00000000..b6bb34f9
--- /dev/null
+++ b/mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql
@@ -0,0 +1,27 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_4775 $$
+
+CREATE PROCEDURE upgrade_database_4775()
+BEGIN
+SET NAMES utf8 COLLATE utf8_hungarian_ci;
+
+IF NOT EXISTS (
+ SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() and TABLE_NAME='felveteli_iskolak'
+) THEN
+
+CREATE TABLE `felveteli_iskolak` (
+ `omkod` varchar(7) CHARACTER SET utf8 DEFAULT NULL,
+ `iskolaNev` varchar(128) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ `iskolaIrsz` varchar(10) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ `iskolaCim` varchar(128) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ `iskolaTelepules` varchar(64) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ `iskolaTelefon` varchar(32) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ `iskolaEmail` varchar(64) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ KEY `ID_felveteli_iskolak_omkod` (`omkod`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+
+END IF;
+
+END $$
+DELIMITER ;
+CALL upgrade_database_4775();