comparison rhodecode/model/db.py @ 670:e7c670cc03cb beta

Adde table for cache invalidation
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 09 Nov 2010 22:53:24 +0100
parents 56a8434a88cc
children cb0d9ce6ac5c
comparison
equal deleted inserted replaced
669:9bacc4194efa 670:e7c670cc03cb
136 commit_activity_combined = Column("commit_activity_combined", BLOB(), nullable=False)#JSON data 136 commit_activity_combined = Column("commit_activity_combined", BLOB(), nullable=False)#JSON data
137 languages = Column("languages", BLOB(), nullable=False)#JSON data 137 languages = Column("languages", BLOB(), nullable=False)#JSON data
138 138
139 repository = relation('Repository', single_parent=True) 139 repository = relation('Repository', single_parent=True)
140 140
141 class CacheInvalidation(Base):
142 __tablename__ = 'cache_invalidation'
143 __table_args__ = {'useexisting':True}
144 cache_id = Column("cache_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True)
145 cache_key = Column("cache_key", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
146 cache_args = Column("cache_args", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
147 cache_active = Column("cache_active", BOOLEAN(), nullable=True, unique=None, default=None)
148
149