Skip to content

Commit 53376c7

Browse files
Update new-field.md (#20194)
* Update new-field.md * Update new-field.md * Update new-field.md * Update new-field.md Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
1 parent 9c14fb5 commit 53376c7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

aspnetcore/tutorials/first-mvc-app/new-field.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,17 @@ If all the records in the DB are deleted, the initialize method will seed the DB
117117

118118
[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)]
119119

120-
Delete the database and use migrations to re-create the database. To delete the database, delete the *MvcMovie.db* database file. Then run the `ef database update` command:
120+
Delete the database and the previous migration and use migrations to re-create the database:
121121

122122
```dotnetcli
123+
dotnet ef migrations remove
124+
dotnet ef database drop
125+
dotnet ef migrations add InitialCreate
123126
dotnet ef database update
124127
```
125128

129+
`dotnet ef migrations remove` removes the last migration. If there are more than one migration, delete the Migrations folder.
130+
126131
---
127132
<!-- End of VS tabs -->
128133

0 commit comments

Comments
 (0)