Skip to content

Commit

Permalink
Update env.py
Browse files Browse the repository at this point in the history
fix for alembic upgrade head
  • Loading branch information
romanchyla committed Dec 20, 2019
1 parent bb38fe6 commit 0c3907c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
from flask import current_app
config.set_main_option('sqlalchemy.url', current_app.config.get('SQLALCHEMY_BINDS')['graphics'])
config.set_main_option('sqlalchemy.url', current_app.config.get('SQLALCHEMY_DATABASE_URI'))
target_metadata = current_app.extensions['migrate'].db.metadata

# other values from the config, defined by the needs of env.py,
Expand Down

0 comments on commit 0c3907c

Please sign in to comment.