Permalink
Browse files

Enable alembic type checking

  • Loading branch information...
1 parent 096f7b1 commit 55dba624e87dad7687bbd664226746a238c682da @svenstaro committed May 6, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 alembic/env.py
View
@@ -44,7 +44,7 @@ def run_migrations_offline():
"""
url = config.get_main_option("sqlalchemy.url")
- context.configure(url=url)
+ context.configure(compare_type=True, url=url)
with context.begin_transaction():
context.run_migrations()
@@ -63,6 +63,7 @@ def run_migrations_online():
connection = engine.connect()
context.configure(
+ compare_type=True,
connection=connection,
target_metadata=target_metadata
)

0 comments on commit 55dba62

Please sign in to comment.