Show More
@@ -3565,17 +3565,6 b' class Gist(Base, BaseModel):' | |||||
3565 | repo_path=safe_str(full_repo_path), create=False) |
|
3565 | repo_path=safe_str(full_repo_path), create=False) | |
3566 |
|
3566 | |||
3567 |
|
3567 | |||
3568 | class DbMigrateVersion(Base, BaseModel): |
|
|||
3569 | __tablename__ = 'db_migrate_version' |
|
|||
3570 | __table_args__ = ( |
|
|||
3571 | {'extend_existing': True, 'mysql_engine': 'InnoDB', |
|
|||
3572 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}, |
|
|||
3573 | ) |
|
|||
3574 | repository_id = Column('repository_id', String(250), primary_key=True) |
|
|||
3575 | repository_path = Column('repository_path', Text) |
|
|||
3576 | version = Column('version', Integer) |
|
|||
3577 |
|
||||
3578 |
|
||||
3579 | class ExternalIdentity(Base, BaseModel): |
|
3568 | class ExternalIdentity(Base, BaseModel): | |
3580 | __tablename__ = 'external_identities' |
|
3569 | __tablename__ = 'external_identities' | |
3581 | __table_args__ = ( |
|
3570 | __table_args__ = ( | |
@@ -3804,3 +3793,26 b' class RepoReviewRule(Base, BaseModel):' | |||||
3804 | def __repr__(self): |
|
3793 | def __repr__(self): | |
3805 | return '<RepoReviewerRule(id=%r, repo=%r)>' % ( |
|
3794 | return '<RepoReviewerRule(id=%r, repo=%r)>' % ( | |
3806 | self.repo_review_rule_id, self.repo) |
|
3795 | self.repo_review_rule_id, self.repo) | |
|
3796 | ||||
|
3797 | ||||
|
3798 | class DbMigrateVersion(Base, BaseModel): | |||
|
3799 | __tablename__ = 'db_migrate_version' | |||
|
3800 | __table_args__ = ( | |||
|
3801 | {'extend_existing': True, 'mysql_engine': 'InnoDB', | |||
|
3802 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}, | |||
|
3803 | ) | |||
|
3804 | repository_id = Column('repository_id', String(250), primary_key=True) | |||
|
3805 | repository_path = Column('repository_path', Text) | |||
|
3806 | version = Column('version', Integer) | |||
|
3807 | ||||
|
3808 | ||||
|
3809 | class DbSession(Base, BaseModel): | |||
|
3810 | __tablename__ = 'db_session' | |||
|
3811 | __table_args__ = ( | |||
|
3812 | {'extend_existing': True, 'mysql_engine': 'InnoDB', | |||
|
3813 | 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}, | |||
|
3814 | ) | |||
|
3815 | namespace = Column('namespace', String(255), primary_key=True) | |||
|
3816 | accessed = Column('accessed', DateTime, nullable=False) | |||
|
3817 | created = Column('created', DateTime, nullable=False) | |||
|
3818 | data = Column('data', PickleType, nullable=False) No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now