# HG changeset patch # User Marcin Kuzminski # Date 2019-10-08 12:04:33 # Node ID b2d23f349f606b0a6b6eb4bb5b9c5b12ee304838 # Parent 3977ceb41029718d2dd47dbc63e59fe11ea01be2 db: remove double unique index diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -1061,7 +1061,7 @@ class User(Base, BaseModel): class UserApiKeys(Base, BaseModel): __tablename__ = 'user_api_keys' __table_args__ = ( - Index('uak_api_key_idx', 'api_key', unique=True), + Index('uak_api_key_idx', 'api_key'), Index('uak_api_key_expires_idx', 'api_key', 'expires'), base_table_args )