summaryrefslogtreecommitdiff
path: root/src/mailman/model/cache.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-07-29 19:28:46 -0400
committerBarry Warsaw2016-07-29 19:28:46 -0400
commitfebb5289e82c4424cdbcc2297e967bd894cbc8cf (patch)
treebd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/model/cache.py
parent90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff)
downloadmailman-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.py7
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)