From e60f4bc88b32465b1d31049f2eb14b1793747dc6 Mon Sep 17 00:00:00 2001
From: Joseph Warner <hardolaf@hardolaf.com>
Date: Tue, 23 Jul 2013 22:15:53 -0400
Subject: [feature/oauth] Finalize schema changes

PHPBB3-11673
---
 phpBB/install/schemas/mysql_40_schema.sql | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'phpBB/install/schemas/mysql_40_schema.sql')

diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index 2c5931bae4..ea9c6419db 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -90,6 +90,26 @@ CREATE TABLE phpbb_acl_users (
 );
 
 
+# Table: 'phpbb_oauth_tokens'
+CREATE TABLE phpbb_oauth_tokens (
+	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+	session_id binary(32) DEFAULT '' NOT NULL,
+	provider varbinary(255) NOT NULL,
+	oauth_token blob NOT NULL,
+	KEY user_id (user_id),
+	KEY provider (oauth_provider)
+);
+
+
+# Table: 'phpbb_oauth_accounts'
+CREATE TABLE phpbb_oauth_accounts (
+	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
+	provider varbinary(255) NOT NULL,
+	oauth_provider_id blob NOT NULL,
+	PRIMARY KEY (user_id, provider)
+);
+
+
 # Table: 'phpbb_banlist'
 CREATE TABLE phpbb_banlist (
 	ban_id mediumint(8) UNSIGNED NOT NULL auto_increment,
-- 
cgit v1.2.1


From 2483efe9a34df48a82bcceff5f966881fea2a37e Mon Sep 17 00:00:00 2001
From: Joseph Warner <hardolaf@hardolaf.com>
Date: Tue, 23 Jul 2013 22:18:41 -0400
Subject: [feature/oauth] Actual final schema changes

PHPBB3-11673
---
 phpBB/install/schemas/mysql_40_schema.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'phpBB/install/schemas/mysql_40_schema.sql')

diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index ea9c6419db..9eb2e10e96 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -94,7 +94,7 @@ CREATE TABLE phpbb_acl_users (
 CREATE TABLE phpbb_oauth_tokens (
 	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
 	session_id binary(32) DEFAULT '' NOT NULL,
-	provider varbinary(255) NOT NULL,
+	provider varbinary(255) DEFAULT '' NOT NULL,
 	oauth_token blob NOT NULL,
 	KEY user_id (user_id),
 	KEY provider (oauth_provider)
@@ -104,7 +104,7 @@ CREATE TABLE phpbb_oauth_tokens (
 # Table: 'phpbb_oauth_accounts'
 CREATE TABLE phpbb_oauth_accounts (
 	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
-	provider varbinary(255) NOT NULL,
+	provider varbinary(255) DEFAULT '' NOT NULL,
 	oauth_provider_id blob NOT NULL,
 	PRIMARY KEY (user_id, provider)
 );
-- 
cgit v1.2.1


From da6a8787f8443ea02f405a913aa5d0721034f819 Mon Sep 17 00:00:00 2001
From: Joseph Warner <hardolaf@hardolaf.com>
Date: Tue, 23 Jul 2013 22:26:22 -0400
Subject: [feature/oauth] Fix SQL error found in install

PHPBB3-11673
---
 phpBB/install/schemas/mysql_40_schema.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'phpBB/install/schemas/mysql_40_schema.sql')

diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index 9eb2e10e96..fe09756b1e 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -97,7 +97,7 @@ CREATE TABLE phpbb_oauth_tokens (
 	provider varbinary(255) DEFAULT '' NOT NULL,
 	oauth_token blob NOT NULL,
 	KEY user_id (user_id),
-	KEY provider (oauth_provider)
+	KEY provider (provider)
 );
 
 
-- 
cgit v1.2.1


From c33f97038675c7ca79c8cbb0ece08c989f411c9b Mon Sep 17 00:00:00 2001
From: Joseph Warner <hardolaf@hardolaf.com>
Date: Wed, 31 Jul 2013 16:50:19 -0400
Subject: [feature/oauth] Forgot to update schema files

PHPBB3-11673
---
 phpBB/install/schemas/mysql_40_schema.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'phpBB/install/schemas/mysql_40_schema.sql')

diff --git a/phpBB/install/schemas/mysql_40_schema.sql b/phpBB/install/schemas/mysql_40_schema.sql
index fe09756b1e..e07a768387 100644
--- a/phpBB/install/schemas/mysql_40_schema.sql
+++ b/phpBB/install/schemas/mysql_40_schema.sql
@@ -95,7 +95,7 @@ CREATE TABLE phpbb_oauth_tokens (
 	user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
 	session_id binary(32) DEFAULT '' NOT NULL,
 	provider varbinary(255) DEFAULT '' NOT NULL,
-	oauth_token blob NOT NULL,
+	oauth_token mediumblob NOT NULL,
 	KEY user_id (user_id),
 	KEY provider (provider)
 );
-- 
cgit v1.2.1

