aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-13 17:59:04 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-14 14:22:43 -0400
commit69e158865560bba4264646faa0799aa6e457c6d0 (patch)
tree870703bc6f306d5f5a4b0629610ab5c8c3f3e98a /phpBB/includes/db
parentb22b076a9972e0bd41551c314f4fea4e938d1d58 (diff)
downloadforums-69e158865560bba4264646faa0799aa6e457c6d0.tar
forums-69e158865560bba4264646faa0799aa6e457c6d0.tar.gz
forums-69e158865560bba4264646faa0799aa6e457c6d0.tar.bz2
forums-69e158865560bba4264646faa0799aa6e457c6d0.tar.xz
forums-69e158865560bba4264646faa0799aa6e457c6d0.zip
[feature/oauth] Store anonymous user by session id
PHPBB3-9734
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/migration/data/310/auth_provider_oauth.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/db/migration/data/310/auth_provider_oauth.php b/phpBB/includes/db/migration/data/310/auth_provider_oauth.php
index 6239cf97bc..92da42ba31 100644
--- a/phpBB/includes/db/migration/data/310/auth_provider_oauth.php
+++ b/phpBB/includes/db/migration/data/310/auth_provider_oauth.php
@@ -21,13 +21,16 @@ class phpbb_db_migration_data_310_auth_provider_oauth extends phpbb_db_migration
$this->table_prefix . 'auth_provider_oauth' => 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
'oauth_provider' => array('VCHAR'), // Name of the OAuth provider
'oauth_token' => array('TEXT_UNI'), // Serialized token
),
- 'PRIMARY_KEY' => array('user_id', 'oauth_provider'),
+ 'KEYS' => array(
+ 'user_id' => array('INDEX', 'user_id'),
+ 'oauth_provider' => array('INDEX', 'oauth_provider'),
+ ),
),
),
-
);
}