Skip to content

Commit

Permalink
init_model expects an engine, not a connection
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 18, 2019
1 parent 3de6043 commit e5a0899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/migration/env.py
Expand Up @@ -61,7 +61,7 @@ def run_migrations_online():
poolclass=pool.NullPool
)
connection = connectable.connect()
init_model(connection)
init_model(connectable)

context.configure(connection=connection, target_metadata=target_metadata)

Expand Down

0 comments on commit e5a0899

Please sign in to comment.