summaryrefslogtreecommitdiffstats
path: root/israwhidebroken
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-09-14 17:23:38 -0400
committerWill Woods <wwoods@redhat.com>2009-09-14 17:23:38 -0400
commit747bc663591b7883a3641b2b13c8b780f37be318 (patch)
treebb9fad688e08f5ab15534cb05f220ebfdf84dbdc /israwhidebroken
parent3a8875e7785e4597f3802ef5a95230d8eaa1903c (diff)
downloadisrawhidebroken-747bc663591b7883a3641b2b13c8b780f37be318.tar.gz
israwhidebroken-747bc663591b7883a3641b2b13c8b780f37be318.tar.xz
israwhidebroken-747bc663591b7883a3641b2b13c8b780f37be318.zip
Add compose_id column to Tree
Diffstat (limited to 'israwhidebroken')
-rw-r--r--israwhidebroken/model.py6
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