diff options
| author | Abhilash Raj | 2014-10-03 21:56:50 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-10-03 21:56:50 +0530 |
| commit | 061799ef5031977bd343bbe54a6ad809138bdb45 (patch) | |
| tree | 81c77ecf3e3acbdbac99a01c31342256c25e5bf9 /src/mailman/commands/cli_migrate.py | |
| parent | 6d4af22c8ee51e1b097ec0370cadd3f5a6b95c08 (diff) | |
| download | mailman-061799ef5031977bd343bbe54a6ad809138bdb45.tar.gz mailman-061799ef5031977bd343bbe54a6ad809138bdb45.tar.zst mailman-061799ef5031977bd343bbe54a6ad809138bdb45.zip | |
Diffstat (limited to 'src/mailman/commands/cli_migrate.py')
| -rw-r--r-- | src/mailman/commands/cli_migrate.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mailman/commands/cli_migrate.py b/src/mailman/commands/cli_migrate.py index ca9d5e9d4..82bf4a708 100644 --- a/src/mailman/commands/cli_migrate.py +++ b/src/mailman/commands/cli_migrate.py @@ -26,11 +26,11 @@ __all__ = [ from alembic import command -from alembic.config import Config from zope.interface import implementer from mailman.config import config from mailman.core.i18n import _ +from mailman.database.alembic import alembic_cfg from mailman.interfaces.command import ICLISubCommand from mailman.utilities.modules import expand_path @@ -54,9 +54,6 @@ class Migrate: help=('Produce less output.')) def process(self, args): - alembic_cfg = Config() - alembic_cfg.set_main_option( - 'script_location', expand_path(config.database['alembic_scripts'])) if args.autogenerate: command.revision(alembic_cfg, autogenerate=True) else: |
