aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql
diff options
context:
space:
mode:
authorM.Gergo2021-05-17 17:50:05 +0200
committerM.Gergo2021-05-17 17:50:05 +0200
commitef8b3fd973fa34b303370d5acc21744e57bca507 (patch)
tree67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql
parentfb24a50c54d5776468e49def08aea44c4077eb47 (diff)
downloadmayor-rev4787.tar.gz
mayor-rev4787.zip
Rev: 4787rev4787
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();