bodhi/bodhi/model/model.py | 1 + 1 file changed, 1 insertion(+)
New commits: commit 6b1c74ea59e351827e51063ede5c1da01b028534 Author: Luke Macken lmacken@redhat.com Date: Tue Jan 26 10:19:51 2010 -0500
Add a timestamp column to our Comment model
diff --git a/bodhi/bodhi/model/model.py b/bodhi/bodhi/model/model.py index 3012f8d..b89ffdd 100644 --- a/bodhi/bodhi/model/model.py +++ b/bodhi/bodhi/model/model.py @@ -771,6 +771,7 @@ class Comment(DeclarativeBase): text = Column(UnicodeText) anonymous = Column(Boolean, default=False) update_id = Column('update_id', Integer, ForeignKey('updates.id')) + timestamp = Column(DateTime, default=datetime.utcnow)
def __str__(self): karma = '0'