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

Missing update-database #2299

merged 1 commit into from
Apr 16, 2020

Conversation

oskarj
Copy link
Contributor

@oskarj oskarj commented Apr 16, 2020

There should be an update-database after applying a blank merge before "continue developing"

There should be an update-database after applying a blank merge before "continue developing"
@ajcvickers
Copy link
Member

@oskarj What errors do you see if you don't do this step?

@oskarj
Copy link
Contributor Author

oskarj commented Apr 16, 2020

@ajcvickers the context is out of sync, if you have a Database initializer that checks if the model has changed when the application is starting you will get an exception with the message "the model backing context has changed" so you need to run update-database in order to get that migration into __MigrationHistory table.

@ajcvickers
Copy link
Member

/cc @bricelam

@ajcvickers ajcvickers merged commit 33b73d7 into dotnet:master Apr 16, 2020
@ajcvickers
Copy link
Member

Thanks @oskarj!

roji pushed a commit that referenced this pull request Apr 27, 2020
There should be an update-database after applying a blank merge before "continue developing"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants