我正在try 使用alembic来处理项目中的本地migrations.它第一次起作用,但后来我需要删除文件夹并重新启动.(不要问为什么,我只是不得不)我在跟踪this tutorial,我运行命令
python manage.py db init
还可以.但当我试着跑的时候
python manage.py db migrate
我得到了这个错误:
alembic.util.CommandError: Can't locate revision identified by '31b8ab83c7d'
Now, it seems that alembic is looking for a revision that doesn't exists anymore. There is anyway to make alembic forget that file? Or like restart the comparison from None to -> auto-generated again?