diff options
Diffstat (limited to 'israwhidebroken/model.py')
-rw-r--r-- | israwhidebroken/model.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/israwhidebroken/model.py b/israwhidebroken/model.py index ed75005..28bf4ea 100644 --- a/israwhidebroken/model.py +++ b/israwhidebroken/model.py @@ -7,7 +7,7 @@ from turbogears.database import PackageHub from sqlobject import SQLObject, SQLObjectNotFound, MultipleJoin, RelatedJoin # import some datatypes for table columns from SQLObject # (see http://www.sqlobject.org/SQLObject.html#column-types for more) -from sqlobject import StringCol, UnicodeCol, IntCol, DateTimeCol, ForeignKey +from sqlobject import StringCol, IntCol, DateTimeCol, ForeignKey from turbogears import identity __connection__ = hub = PackageHub('israwhidebroken') @@ -17,6 +17,10 @@ __connection__ = hub = PackageHub('israwhidebroken') class Tree(SQLObject): arch = StringCol(length=10, notNone=True) + # The compose ID links together a given day's rawhide trees, even if + # everything else is missing - so if there's no PPC tree_time/repo_time + # we can still have a ppc Tree for that day + compose_id = IntCol(notNone=True) # These could be null if repodata/images are missing. # They're IntCol because I don't want to deal with converting # between the representation in the file(s) and weirdo datetime |