diff options
| author | Abhilash Raj | 2014-09-05 10:45:50 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-05 10:45:50 +0530 |
| commit | 1341b9f00d56c806b78298f3dad7350d8fa28c39 (patch) | |
| tree | 1e4385f5687535cce09dd53191e615426c1d319e /src/mailman/model/version.py | |
| parent | d95e634aa7bcf8018797923c1d90fc2eadff8ce9 (diff) | |
| download | mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.gz mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.tar.zst mailman-1341b9f00d56c806b78298f3dad7350d8fa28c39.zip | |
Diffstat (limited to 'src/mailman/model/version.py')
| -rw-r--r-- | src/mailman/model/version.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mailman/model/version.py b/src/mailman/model/version.py index e99fb0d1c..9824e54d4 100644 --- a/src/mailman/model/version.py +++ b/src/mailman/model/version.py @@ -24,15 +24,19 @@ __all__ = [ 'Version', ] -from storm.locals import Int, Unicode +from sqlalchemy import Column, Unicode, Integer + from mailman.database.model import Model class Version(Model): - id = Int(primary=True) - component = Unicode() - version = Unicode() + + __tablename_ = 'version' + + id = Column(Integer, primary_key=True) + component = Column(Unicode) + version = Column(Unicode) # The testing machinery will generally reset all tables, however because # this table tracks schema migrations, we do not want to reset it. |
