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
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(
--- /dev/null
+.. change::
+ :tags: bug, commands
+
+ 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.