Skip to content

Commit

Permalink
Merge pull request #229 from NageshAndani/patch-1
Browse files Browse the repository at this point in the history
Workaround for Add-Migration command failure
  • Loading branch information
rowanmiller committed Sep 13, 2016
2 parents 384b1a4 + b424d39 commit 9fd6875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/platforms/aspnetcore/new-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Create your database
Now that you have a model, you can use migrations to create a database for you.

* :menuselection:`Tools –> NuGet Package Manager –> Package Manager Console`
* Run ``Add-Migration MyFirstMigration`` to scaffold a migration to create the initial set of tables for your model.
* Run ``Add-Migration MyFirstMigration`` to scaffold a migration to create the initial set of tables for your model. If you receive an error stating the term 'add-migration' is not recognized as the name of a cmdlet, then close and reopen Visual Studio
* Run ``Update-Database`` to apply the new migration to the database. Because your database doesn't exist yet, it will be created for you before the migration is applied.

.. tip::
Expand Down

0 comments on commit 9fd6875

Please sign in to comment.