comparison rhodecode/model/db.py @ 1675:7c487d2678c7 beta

code refactoring
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 12 Nov 2011 17:30:12 +0200
parents d2de0c2f02cd
children 7276b170ce8b
comparison
equal deleted inserted replaced
1674:6f0143e5efe5 1675:7c487d2678c7
1098 class ChangesetComment(Base, BaseModel): 1098 class ChangesetComment(Base, BaseModel):
1099 __tablename__ = 'changeset_comments' 1099 __tablename__ = 'changeset_comments'
1100 __table_args__ = ({'extend_existing':True},) 1100 __table_args__ = ({'extend_existing':True},)
1101 comment_id = Column('comment_id', Integer(), nullable=False, primary_key=True) 1101 comment_id = Column('comment_id', Integer(), nullable=False, primary_key=True)
1102 repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False) 1102 repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
1103 commit_id = Column('commit_id', String(100), nullable=False) 1103 revision = Column('revision', String(40), nullable=False)
1104 line_no = Column('line_no', Integer(), nullable=True) 1104 line_no = Column('line_no', Integer(), nullable=True)
1105 f_path = Column('f_path', String(1000), nullable=True) 1105 f_path = Column('f_path', String(1000), nullable=True)
1106 user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False) 1106 user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False)
1107 text = Column('text', String(25000), nullable=False) 1107 text = Column('text', String(25000), nullable=False)
1108 modified_at = Column('modified_at', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) 1108 modified_at = Column('modified_at', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)