##// END OF EJS Templates
db: removed two redundant indexes found by never sqlalchemy
marcink -
r1965:b63bd7fe default
parent child Browse files
Show More
@@ -967,9 +967,8 b' class User(Base, BaseModel):'
967 967 class UserApiKeys(Base, BaseModel):
968 968 __tablename__ = 'user_api_keys'
969 969 __table_args__ = (
970 Index('uak_api_key_idx', 'api_key'),
970 Index('uak_api_key_idx', 'api_key', unique=True),
971 971 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
972 UniqueConstraint('api_key'),
973 972 {'extend_existing': True, 'mysql_engine': 'InnoDB',
974 973 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
975 974 )
@@ -2905,7 +2904,6 b' class UserGroupRepoGroupToPerm(Base, Bas'
2905 2904 class Statistics(Base, BaseModel):
2906 2905 __tablename__ = 'statistics'
2907 2906 __table_args__ = (
2908 UniqueConstraint('repository_id'),
2909 2907 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2910 2908 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
2911 2909 )
General Comments 0
You need to be logged in to leave comments. Login now