summaryrefslogtreecommitdiff
path: root/src/mailman/model/message.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/message.py
parent90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff)
downloadmailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.gz
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.zst
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.zip
Diffstat (limited to 'src/mailman/model/message.py')
-rw-r--r--src/mailman/model/message.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mailman/model/message.py b/src/mailman/model/message.py
index c4fe63f1c..576baab5c 100644
--- a/src/mailman/model/message.py
+++ b/src/mailman/model/message.py
@@ -20,8 +20,9 @@
from mailman import public
from mailman.database.model import Model
from mailman.database.transaction import dbconnection
+from mailman.database.types import SAUnicode
from mailman.interfaces.messages import IMessage
-from sqlalchemy import Column, Integer, Unicode
+from sqlalchemy import Column, Integer
from zope.interface import implementer
@@ -34,9 +35,9 @@ class Message(Model):
id = Column(Integer, primary_key=True)
# This is a Messge-ID field representation, not a database row id.
- message_id = Column(Unicode)
- message_id_hash = Column(Unicode)
- path = Column(Unicode)
+ message_id = Column(SAUnicode)
+ message_id_hash = Column(SAUnicode)
+ path = Column(SAUnicode)
@dbconnection
def __init__(self, store, message_id, message_id_hash, path):