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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdb205-305af.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdb205-305af.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?