aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-18 12:12:14 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-18 12:12:57 -0400
commitfe9428b7250fce4cee0d601591e3fac117911d2e (patch)
treebcec72593ec233a698d633381ffda6e7fb719a03 /phpBB/phpbb/db
parent469879716d86757c2e583bc746bebaa39cd630ef (diff)
downloadforums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.gz
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.bz2
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.tar.xz
forums-fe9428b7250fce4cee0d601591e3fac117911d2e.zip
[feature/oauth] Create means to associate phpBB account with external
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/310/auth_provider_oauth.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/data/310/auth_provider_oauth.php b/phpBB/phpbb/db/migration/data/310/auth_provider_oauth.php
index 92da42ba31..86e446e48e 100644
--- a/phpBB/phpbb/db/migration/data/310/auth_provider_oauth.php
+++ b/phpBB/phpbb/db/migration/data/310/auth_provider_oauth.php
@@ -18,7 +18,7 @@ class phpbb_db_migration_data_310_auth_provider_oauth extends phpbb_db_migration
{
return array(
'add_tables' => array(
- $this->table_prefix . 'auth_provider_oauth' => array(
+ $this->table_prefix . 'auth_provider_oauth_token_storage' => array(
'COLUMNS' => array(
'user_id' => array('UINT', 0), // phpbb_users.user_id
'session_id' => array('CHAR:32', ''), // phpbb_sessions.session_id used only when user_id not set
@@ -30,6 +30,17 @@ class phpbb_db_migration_data_310_auth_provider_oauth extends phpbb_db_migration
'oauth_provider' => array('INDEX', 'oauth_provider'),
),
),
+ $this->table_prefix . 'auth_provider_oauth_account_assoc' => array(
+ 'COLUMNS' => array(
+ 'user_id' => array('UINT', 0),
+ 'oauth_provider' => array('VCHAR'),
+ 'oauth_provider_id' => array('TEXT_UNI'),
+ ),
+ 'PRIMARY_KEY' => array(
+ 'user_id',
+ 'oauth_provider',
+ ),
+ ),
),
);
}