summaryrefslogtreecommitdiff
path: root/src/mailman/database/base.py
diff options
context:
space:
mode:
authorAbhilash Raj2014-10-02 20:16:00 +0530
committerAbhilash Raj2014-10-02 20:16:00 +0530
commit6d4af22c8ee51e1b097ec0370cadd3f5a6b95c08 (patch)
tree2f5a8b9723f670bdc4179f7dbdbb0322ab966fd9 /src/mailman/database/base.py
parent556631243a206f1680d6737227c34e2d66d85748 (diff)
parent5166ae93e5c51285661f4ac251c0d4b9390fe785 (diff)
downloadmailman-6d4af22c8ee51e1b097ec0370cadd3f5a6b95c08.tar.gz
mailman-6d4af22c8ee51e1b097ec0370cadd3f5a6b95c08.tar.zst
mailman-6d4af22c8ee51e1b097ec0370cadd3f5a6b95c08.zip
Diffstat (limited to 'src/mailman/database/base.py')
-rw-r--r--src/mailman/database/base.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mailman/database/base.py b/src/mailman/database/base.py
index 0afdad204..26b6ddbbb 100644
--- a/src/mailman/database/base.py
+++ b/src/mailman/database/base.py
@@ -92,15 +92,15 @@ class SABaseDatabase:
pass
def stamp(self, debug=False):
- """Stamp the database with the latest alembic version.
- """
- # Newly created database don't need to migrations from alembic, since
- # `create_all`` ceates the latest schema. SO patch the database with
- # the latest alembic version to add a entry in alembic_version table.
+ """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.
alembic_cfg = Config()
alembic_cfg.set_main_option(
- "script_location", config.alembic['script_location'])
- command.stamp(alembic_cfg, "head")
+ 'script_location', config.database['alembic_scripts'])
+ command.stamp(alembic_cfg, 'head')
def initialize(self, debug=None):