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/message.py | |
| parent | 90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff) | |
| download | mailman-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.py | 9 |
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): |
