summaryrefslogtreecommitdiff
path: root/src/mailman/database/base.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-10-13 15:24:24 -0400
committerBarry Warsaw2014-10-13 15:24:24 -0400
commit8bc9e217f5c367794b05105bfc80fffac0e4b863 (patch)
treeab83ccf1bf806bbeddbcf413e17623e8bba9b2b1 /src/mailman/database/base.py
parentb8715f08a812906fe02289fe4213667ca8f0437e (diff)
parent1a2868b416a139a0cb62fb33bc4225560e19958a (diff)
downloadmailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.tar.gz
mailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.tar.zst
mailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.zip
Diffstat (limited to 'src/mailman/database/base.py')
-rw-r--r--src/mailman/database/base.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mailman/database/base.py b/src/mailman/database/base.py
index 2f69ed6ad..e360dcedf 100644
--- a/src/mailman/database/base.py
+++ b/src/mailman/database/base.py
@@ -25,13 +25,11 @@ __all__ = [
import logging
-from alembic import command
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from zope.interface import implementer
from mailman.config import config
-from mailman.database.alembic import alembic_cfg
from mailman.interfaces.database import IDatabase
from mailman.utilities.string import expand
@@ -91,14 +89,6 @@ class SABaseDatabase:
"""
pass
- def stamp(self, debug=False):
- """Stamp the database with the latest Alembic version."""
- # Newly created databases don't need migrations from Alembic, since
- # create_all() ceates the latest schema. This patches the database
- # with the latest Alembic version to add an entry in the
- # alembic_version table.
- command.stamp(alembic_cfg, 'head')
-
def initialize(self, debug=None):
"""See `IDatabase`."""
# Calculate the engine url.