Flask-migrate always has a card owner when upgrading the database. What should I do?

clipboard.png

like this, it"s stuck here all the time.

Apr.07,2022

Hello subject, migrate and upgrade need to be executed every time you make changes to the database model, as follows:

python manage.py db migrate
python manage.py db upgrade

you can try again.


recently encountered this problem and found that the reason is that python has run the service many times, some of which have not been terminated.
ps aux | grep python kills all the listed processes, restarts mysql at the same time, and then reoperates.

Menu