Add image ancestry and update the test db accordingly.

This commit is contained in:
yackob03 2013-09-30 15:30:00 -04:00
parent abdf731f7a
commit ea6df2b725
5 changed files with 43 additions and 14 deletions

View file

@ -89,6 +89,9 @@ class Image(BaseModel):
comment = CharField(null=True)
repository = ForeignKeyField(Repository)
# '/' separated list of ancestory ids, e.g. /1/2/6/7/10/
ancestors = CharField(index=True, default='/', max_length=65535)
class Meta:
database = db
indexes = (