Skip to content

Commit 33b73d7

Browse files
authored
Missing update-database (#2299)
There should be an update-database after applying a blank merge before "continue developing"
1 parent 43507e4 commit 33b73d7

File tree

1 file changed

+2
-1
lines changed
  • entity-framework/ef6/modeling/code-first/migrations

1 file changed

+2
-1
lines changed

entity-framework/ef6/modeling/code-first/migrations/teams.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ The following process can be used for this approach, starting from the time you
136136
3. Run **Update-Database** to apply any new migrations that other developers have checked in.
137137
**_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.*
138138
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).
139-
5. Continue developing, or submit to source control (after running your unit tests of course).
139+
5. Run **Update-Database** to re-apply the latest migration with the updated metadata.
140+
6. Continue developing, or submit to source control (after running your unit tests of course).
140141

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

0 commit comments

Comments
 (0)