##// END OF EJS Templates
db: adjust beaker_cache column size. If this column is created via Beaker itself it uses...
marcink -
r2734:caa42fff default
parent child Browse files
Show More
@@ -4503,3 +4503,21 b' class DbSession(Base, BaseModel):'
4503 4503 accessed = Column('accessed', DateTime, nullable=False)
4504 4504 created = Column('created', DateTime, nullable=False)
4505 4505 data = Column('data', PickleType, nullable=False)
4506
4507
4508
4509 class BeakerCache(Base, BaseModel):
4510 __tablename__ = 'beaker_cache'
4511 __table_args__ = (
4512 {'extend_existing': True, 'mysql_engine': 'InnoDB',
4513 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
4514 )
4515
4516 def __repr__(self):
4517 return '<DB:DbSession({})>'.format(self.id)
4518
4519 id = Column('id', Integer())
4520 namespace = Column('namespace', String(255), primary_key=True)
4521 accessed = Column('accessed', DateTime, nullable=False)
4522 created = Column('created', DateTime, nullable=False)
4523 data = Column('data', PickleType, nullable=False)
General Comments 0
You need to be logged in to leave comments. Login now