Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing update-database #2299

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entity-framework/ef6/modeling/code-first/migrations/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ The following process can be used for this approach, starting from the time you
3. Run **Update-Database** to apply any new migrations that other developers have checked in.
**_Note:_** *if you don’t get any warnings from the Update-Database command then there were no new migrations from other developers and there is no need to perform any further merging.*
4. Run **Add-Migration <pick\_a\_name> –IgnoreChanges** (for example, **Add-Migration Merge –IgnoreChanges**). This generates a migration with all the metadata (including a snapshot of the current model) but will ignore any changes it detects when comparing the current model to the snapshot in the last migrations (meaning you get a blank **Up** and **Down** method).
5. Continue developing, or submit to source control (after running your unit tests of course).
5. Run **Update-Database** to re-apply the latest migration with the updated metadata.
6. Continue developing, or submit to source control (after running your unit tests of course).

Here is the state of Developer \#2’s local code base after using this approach.

Expand Down