diff options
author | Brendan Gann <b.gann21@gmail.com> | 2023-02-14 11:03:09 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-02-14 11:09:31 -0500 |
commit | f5aba011f6b1ea868f14bc03b5c1beb09262c8b8 (patch) | |
tree | fb78e738e6938df7dd7f513e109239cc1d3d3068 /alembic | |
parent | a79ba7d74d12e0be63e1afb05e037d0a052b5086 (diff) | |
download | alembic-f5aba011f6b1ea868f14bc03b5c1beb09262c8b8.tar.gz |
restore config object to merge command
Fixed regression introduced in 1.7.0 where the "config" object passed to
the template context when running the :func:`.merge` command
programmatically failed to be correctly populated. Pull request courtesy
Brendan Gann.
Closes: #1176
Pull-request: https://github.com/sqlalchemy/alembic/pull/1176
Pull-request-sha: cf6a886915f6bef6eeef8041804e316038955402
Change-Id: Idbab2dc0339cce6f8827d2f49156791600a82c1a
Diffstat (limited to 'alembic')
-rw-r--r-- | alembic/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/command.py b/alembic/command.py index d2c5c85..a8e5657 100644 --- a/alembic/command.py +++ b/alembic/command.py @@ -322,7 +322,7 @@ def merge( script = ScriptDirectory.from_config(config) template_args = { - "config": "config" # Let templates use config for + "config": config # Let templates use config for # e.g. multiple databases } return script.generate_revision( |