Add the missing index on the peewee side. We already have the associated migration.

This commit is contained in:
Joseph Schorr 2015-04-30 15:56:40 -04:00
parent 17bc9b81bf
commit a59100b231

View file

@ -561,6 +561,14 @@ class LogEntry(BaseModel):
ip = CharField(null=True)
metadata_json = TextField(default='{}')
class Meta:
database = db
read_slaves = (read_slave,)
indexes = (
# create an index on repository and date
(('repository', 'datetime'), False),
)
class RepositoryActionCount(BaseModel):
repository = ForeignKeyField(Repository, index=True)