You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2024/01/15 16:41:33 UTC
(allura) 01/02: add user_id index to oauth collections
This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit d254119682360042c797980886e9d5ae47b65639
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