You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2023/12/22 16:03:32 UTC
(allura) 01/01: add user_id index to oauth collections
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/oauth_user_index
in repository https://gitbox.apache.org/repos/asf/allura.git
commit c8e092fefcbb5a6286a60abb64b0fbdc8b69c8b8
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Fri Dec 22 11:03:15 2023 -0500
add user_id index to oauth collections
---
Allura/allura/model/oauth.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Allura/allura/model/oauth.py b/Allura/allura/model/oauth.py
index ce0baada6..b7d539acf 100644
--- a/Allura/allura/model/oauth.py
+++ b/Allura/allura/model/oauth.py
@@ -47,6 +47,9 @@ class OAuthToken(MappedClass):
session = main_orm_session
name = 'oauth_token'
unique_indexes = ['api_key']
+ indexes = [
+ ('user_id'),
+ ]
polymorphic_on = 'type'
polymorphic_identity = None