1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-10 17:45:18 +02:00

[feature/oauth] Store anonymous user by session id

PHPBB3-9734
This commit is contained in:
Joseph Warner 2013-07-13 17:59:04 -04:00
parent b22b076a99
commit 69e1588655
2 changed files with 10 additions and 3 deletions

View File

@ -926,10 +926,14 @@ function get_schema_struct()
$schemda_data['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'),
),
);
$schema_data['phpbb_banlist'] = array(

View File

@ -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'),
),
),
),
);
}