This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/mongo_indexes
in repository https://gitbox.apache.org/repos/asf/allura.git

commit d147d5f0a441ddc11d5ca54270c7e8691abf4d7b
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Fri Oct 14 13:06:02 2022 -0400

    make oauth api_key unique, to match child class that has it unique
---
 Allura/allura/model/oauth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/model/oauth.py b/Allura/allura/model/oauth.py
index 69778b434..8060dfce2 100644
--- a/Allura/allura/model/oauth.py
+++ b/Allura/allura/model/oauth.py
@@ -46,7 +46,7 @@ class OAuthToken(MappedClass):
     class __mongometa__:
         session = main_orm_session
         name = 'oauth_token'
-        indexes = ['api_key']
+        unique_indexes = ['api_key']
         polymorphic_on = 'type'
         polymorphic_identity = None
 

Reply via email to