summaryrefslogtreecommitdiff
path: root/alembic/templates/pylons
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-14 10:17:37 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-14 10:17:37 -0400
commitefdf9e408fb10049de5effd3dade6fa276190c4b (patch)
treee48b75b7822c43499b2aa5987366d9849e3828a5 /alembic/templates/pylons
parent4bb4d50b8ace9ca17bf4239c584e6afae83d6fbc (diff)
downloadalembic-efdf9e408fb10049de5effd3dade6fa276190c4b.tar.gz
- ensure that target_metadata is also present in the offline migration context,
so that --sql mode gets access to naming conventions also. existing environments need to add target_metadata to the offline migration context manually. fixes #189
Diffstat (limited to 'alembic/templates/pylons')
-rw-r--r--alembic/templates/pylons/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/templates/pylons/env.py b/alembic/templates/pylons/env.py
index 7cc35d4..36c3fca 100644
--- a/alembic/templates/pylons/env.py
+++ b/alembic/templates/pylons/env.py
@@ -46,7 +46,7 @@ def run_migrations_offline():
"""
context.configure(
- url=meta.engine.url)
+ url=meta.engine.url, target_metadata=target_metadata)
with context.begin_transaction():
context.run_migrations()