mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/oauth] Store anonymous user by session id
PHPBB3-9734
This commit is contained in:
parent
b22b076a99
commit
69e1588655
2 changed files with 10 additions and 3 deletions
|
@ -926,10 +926,14 @@ function get_schema_struct()
|
||||||
$schemda_data['auth_provider_oauth'] = array(
|
$schemda_data['auth_provider_oauth'] = array(
|
||||||
'COLUMNS' => array(
|
'COLUMNS' => array(
|
||||||
'user_id' => array('UINT', 0), // phpbb_users.user_id
|
'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_provider' => array('VCHAR'), // Name of the OAuth provider
|
||||||
'oauth_token' => array('TEXT_UNI'), // Serialized token
|
'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(
|
$schema_data['phpbb_banlist'] = array(
|
||||||
|
|
|
@ -21,13 +21,16 @@ class phpbb_db_migration_data_310_auth_provider_oauth extends phpbb_db_migration
|
||||||
$this->table_prefix . 'auth_provider_oauth' => array(
|
$this->table_prefix . 'auth_provider_oauth' => array(
|
||||||
'COLUMNS' => array(
|
'COLUMNS' => array(
|
||||||
'user_id' => array('UINT', 0), // phpbb_users.user_id
|
'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_provider' => array('VCHAR'), // Name of the OAuth provider
|
||||||
'oauth_token' => array('TEXT_UNI'), // Serialized token
|
'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'),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue