简体   繁体   English

我应该提交Entity Framework迁移吗?

[英]Should i commit Entity Framework migrations?

Long story short, im working on a project with multiple people using Entity Framework with PostgreSQL and i ask myself now how we handle migrations. 长话短说,我正在与多个人一起使用Entity Framework和PostgreSQL进行项目,现在我问自己如何处理迁移。

Assuming from Visual Studio default .gitignore you shouldn't commit these, but how do the other people update there database to the right model without migrations? 假设从Visual Studio默认.gitignore你不应该提交这些,但是其他人如何在没有迁移的情况下将数据库更新到正确的模型? or for people having an outdated version of the database in there development enviroment? 或者对于那些在开发环境中拥有过时的数据库版本的人?

you should include your local DB changes, so it can be synchronized with other members of the team. 您应该包括本地数据库更改,以便可以与团队中的其他成员同步。 Every member should commit their local migrations changes. 每个成员都应该提交本地迁移更改。 What I suggest to you is to have team meetings and have discussions about changes you need to do and prepare tasks that will not cause conflicts with other members. 我建议您参加团队会议并讨论您需要做的更改,并准备不会导致与其他成员冲突的任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM