diff options
| author | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
| commit | febb5289e82c4424cdbcc2297e967bd894cbc8cf (patch) | |
| tree | bd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/model/cache.py | |
| parent | 90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff) | |
| download | mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.gz mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.zst mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.zip | |
Diffstat (limited to 'src/mailman/model/cache.py')
| -rw-r--r-- | src/mailman/model/cache.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/model/cache.py b/src/mailman/model/cache.py index d9c0d0445..6be5fbc9d 100644 --- a/src/mailman/model/cache.py +++ b/src/mailman/model/cache.py @@ -26,9 +26,10 @@ from mailman import public from mailman.config import config from mailman.database.model import Model from mailman.database.transaction import dbconnection +from mailman.database.types import SAUnicode from mailman.interfaces.cache import ICacheManager from mailman.utilities.datetime import now -from sqlalchemy import Boolean, Column, DateTime, Integer, Unicode +from sqlalchemy import Boolean, Column, DateTime, Integer from zope.interface import implementer @@ -36,8 +37,8 @@ class CacheEntry(Model): __tablename__ = 'file_cache' id = Column(Integer, primary_key=True) - key = Column(Unicode) - file_id = Column(Unicode) + key = Column(SAUnicode) + file_id = Column(SAUnicode) is_bytes = Column(Boolean) created_on = Column(DateTime) expires_on = Column(DateTime) |
