You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo operates outside of a current_app context. However, the alembic env script derives values from the app context, and thus, most basic alembic commands (e.g., autogenerate) cannot run without a corresponding app.
The alembic docs suggest that the env.py file can be "hacked" or modified to meet your needs. Let's adjust the env.py file, so we can autogenerate migrations outside of an app context, something like:
This repo operates outside of a
current_app
context. However, the alembic env script derives values from the app context, and thus, most basic alembic commands (e.g.,autogenerate
) cannot run without a corresponding app.mci-database/mci_database/db/migrations/env.py
Lines 24 to 27 in 7351a0b
The alembic docs suggest that the env.py file can be "hacked" or modified to meet your needs. Let's adjust the
env.py
file, so we can autogenerate migrations outside of an app context, something like:mci-database/mci_database/db/alembic/env.py
Lines 20 to 34 in c4532db
The text was updated successfully, but these errors were encountered: