Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 1aacaea

Browse files
committed
Add: compare types
1 parent e903f8a commit 1aacaea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

alembic/env.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def run_migrations_offline():
195195
url=url,
196196
target_metadata=target_metadata,
197197
literal_binds=True,
198+
compare_type=True,
198199
dialect_opts={"paramstyle": "named"},
199200
include_name=include_name,
200201
)
@@ -214,6 +215,7 @@ def run_migrations_online():
214215
with connectable.connect() as connection:
215216
context.configure(
216217
connection=connection,
218+
compare_type=True,
217219
target_metadata=target_metadata,
218220
include_name=include_name,
219221
)

0 commit comments

Comments
 (0)