This is an automated email from the ASF dual-hosted git repository. kentontaylor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 97bba1dd0855b991a3aaba1e200a4bc261d64ce7 Author: Dave Brondsema <[email protected]> AuthorDate: Thu Sep 8 11:31:44 2022 -0400 [#8461] index (unique) on OAuthConsumerToken.api_key --- Allura/allura/model/oauth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Allura/allura/model/oauth.py b/Allura/allura/model/oauth.py index a5e390ff0..72f31f7e6 100644 --- a/Allura/allura/model/oauth.py +++ b/Allura/allura/model/oauth.py @@ -72,7 +72,10 @@ class OAuthConsumerToken(OAuthToken): class __mongometa__: polymorphic_identity = 'consumer' name = 'oauth_consumer_token' - unique_indexes = [('name', 'user_id')] + unique_indexes = [ + ('name', 'user_id'), + ('api_key',), + ] query: 'Query[OAuthConsumerToken]'
