From ef8b3fd973fa34b303370d5acc21744e57bca507 Mon Sep 17 00:00:00 2001
From: M.Gergo
Date: Mon, 17 May 2021 17:50:05 +0200
Subject: Rev: 4787

---
 .../mayor-naplo/update/pre004775-1-naplo.sql       | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql

(limited to 'mayor-orig/mayor-naplo/update/pre004775-1-naplo.sql')

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();
-- 
cgit v1.2.3

