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 <dbronds...@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