我想为Flask应用程序进行迁移。我正在使用Alembic。但是,我收到以下错误。Targetdatabaseisnotuptodate.在线,我读到这与此有关。http://alembic.zzzcomputing.com/en/latest/cookbook.html#building-an-up-to-date-database-from-scratch不幸的是,我不太了解如何使数据库最新以及在链接中的何处/应该如何编写代码。 最佳答案 创建迁移后,手动或作为--autogenerate,您必须使用alembicupgrade