我目前正在尝试在我的项目中创建一个新的迁移之后的初始迁移。我从一个脚本开始,虽然它一直在运行,没有错误,但实际的工作没有完成。
yarn mikro-orm migration:create
我决定关闭我的脚本并使用上面的 CLI 让它工作,它仍然没有创建,但不断地给我一个输出......
No changes required, schema is up-to-date
我已经对我的架构进行了更新,以检查是否有任何问题,但没有错误。
我目前正在尝试在我的项目中创建一个新的迁移之后的初始迁移。我从一个脚本开始,虽然它一直在运行,没有错误,但实际的工作没有完成。
yarn mikro-orm migration:create
我决定关闭我的脚本并使用上面的 CLI 让它工作,它仍然没有创建,但不断地给我一个输出......
No changes required, schema is up-to-date
我已经对我的架构进行了更新,以检查是否有任何问题,但没有错误。
运行迁移时会发生什么:向上?
我建议尝试使用以下命令:
npx mikro-orm migration:up # Migrate up to the latest version
npx mikro-orm migration:down # Migrate one step down
npx mikro-orm migration:list # List all executed migrations
npx mikro-orm migration:pending # List all pending migrations