aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
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'),
+ ),
),
),
-
);
}