Show More
@@ -967,9 +967,8 b' class User(Base, BaseModel):' | |||||
967 | class UserApiKeys(Base, BaseModel): |
|
967 | class UserApiKeys(Base, BaseModel): | |
968 | __tablename__ = 'user_api_keys' |
|
968 | __tablename__ = 'user_api_keys' | |
969 | __table_args__ = ( |
|
969 | __table_args__ = ( | |
970 | Index('uak_api_key_idx', 'api_key'), |
|
970 | Index('uak_api_key_idx', 'api_key', unique=True), | |
971 | Index('uak_api_key_expires_idx', 'api_key', 'expires'), |
|
971 | Index('uak_api_key_expires_idx', 'api_key', 'expires'), | |
972 | UniqueConstraint('api_key'), |
|
|||
973 | {'extend_existing': True, 'mysql_engine': 'InnoDB', |
|
972 | {'extend_existing': True, 'mysql_engine': 'InnoDB', | |
974 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True} |
|
973 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True} | |
975 | ) |
|
974 | ) | |
@@ -2905,7 +2904,6 b' class UserGroupRepoGroupToPerm(Base, Bas' | |||||
2905 | class Statistics(Base, BaseModel): |
|
2904 | class Statistics(Base, BaseModel): | |
2906 | __tablename__ = 'statistics' |
|
2905 | __tablename__ = 'statistics' | |
2907 | __table_args__ = ( |
|
2906 | __table_args__ = ( | |
2908 | UniqueConstraint('repository_id'), |
|
|||
2909 | {'extend_existing': True, 'mysql_engine': 'InnoDB', |
|
2907 | {'extend_existing': True, 'mysql_engine': 'InnoDB', | |
2910 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True} |
|
2908 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True} | |
2911 | ) |
|
2909 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now