From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001
From: M.Gergo
Date: Fri, 6 Jul 2018 11:14:41 +0200
Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási
 állapota

---
 mayor-orig/update/pre003856-1-mayor_login.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 mayor-orig/update/pre003856-1-mayor_login.sql

(limited to 'mayor-orig/update/pre003856-1-mayor_login.sql')

diff --git a/mayor-orig/update/pre003856-1-mayor_login.sql b/mayor-orig/update/pre003856-1-mayor_login.sql
new file mode 100644
index 00000000..3c7a8c25
--- /dev/null
+++ b/mayor-orig/update/pre003856-1-mayor_login.sql
@@ -0,0 +1,16 @@
+DELIMITER $$
+DROP PROCEDURE IF EXISTS upgrade_database_3856 $$
+CREATE PROCEDURE upgrade_database_3856()
+BEGIN
+    IF NOT EXISTS (
+	SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='facebookConnect'
+    ) THEN
+    CREATE TABLE `facebookConnect` (
+  `fbUserId` bigint(20) NOT NULL,
+  `userAccount` varchar(64) COLLATE utf8_hungarian_ci NOT NULL,
+  `policy` enum('public','parent','private') COLLATE utf8_hungarian_ci DEFAULT NULL
+    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
+END IF;
+END $$
+DELIMITER ; $$
+CALL upgrade_database_3856();
-- 
cgit v1.2.3

