Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用sequelize cli,当我创建模型时会自动创建迁移,但是当我对模型进行更改时,迁移无法自动更新,那么我们是否可以将模型中发生的更改同步到迁移?
非常感谢
您可以为所有更改编写迁移。Sequelize cli 提供类似 db:migrate:create.
db:migrate:create
您可以参考文档以获取更多信息