diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-07-20 20:25:33 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-07-20 20:25:33 +0200 |
commit | 7d73bb5edbd4c853a6de6a1c003ba70978f6ed00 (patch) | |
tree | 8e942ddee0e33d8ae7a665751911b56bdab8fbad /rhodecode/model/db.py | |
parent | 5cec7357563c5c905051c1577b27a8a897a09304 (diff) |
Added created_on column to changeset comments for proper ordering.
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/db.py')
-rwxr-xr-x | rhodecode/model/db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py index dd1a72e0..de8f0e59 100755 --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -1427,7 +1427,8 @@ class ChangesetComment(Base, BaseModel): f_path = Column('f_path', Unicode(1000), nullable=True) user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False) text = Column('text', Unicode(25000), nullable=False) - modified_at = Column('modified_at', DateTime(), nullable=False, default=datetime.datetime.now) + created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) + modified_at = Column('modified_at', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) author = relationship('User', lazy='joined') repo = relationship('Repository') |