Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
257 views
in Technique[技术] by (71.8m points)

python - Flask and alembic script_location for migrate

I use a tutorial for flask and make alembic.ini like "flask db init" and after I have this files structure:

alembic.ini
env.py   # and this must be found at the script_location
script.py.mako
versions/
    0000001_.py

And I thought to use alembic without flask too. So, I get other problem, in alembic.ini I don't have script_location. I read doc for this param and they write:

[alembic]
script_location = alembic

But I have other files structure (see above).

What should I write in script_location in alembic.ini or can I call alembic in console with that param? And I have Win and Linux OS.

question from:https://stackoverflow.com/questions/65879525/flask-and-alembic-script-location-for-migrate

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...