diff options
Diffstat (limited to 'src/mailman/model/uid.py')
| -rw-r--r-- | src/mailman/model/uid.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mailman/model/uid.py b/src/mailman/model/uid.py index c60d0f1eb..cb248b1fa 100644 --- a/src/mailman/model/uid.py +++ b/src/mailman/model/uid.py @@ -25,10 +25,11 @@ __all__ = [ ] -from storm.locals import Int -from storm.properties import UUID + +from sqlalchemy import Column, Integer from mailman.database.model import Model +from mailman.database.types import UUID from mailman.database.transaction import dbconnection @@ -45,8 +46,11 @@ class UID(Model): There is no interface for this class, because it's purely an internal implementation detail. """ - id = Int(primary=True) - uid = UUID() + + __tablename__ = 'uid' + + id = Column(Integer, primary_key=True) + uid = Column(UUID) @dbconnection def __init__(self, store, uid): |
