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

Two-stage migrations (compatibility/staging mode) #8932

Closed
AndriySvyryd opened this issue Jun 21, 2017 · 5 comments
Closed

Two-stage migrations (compatibility/staging mode) #8932

AndriySvyryd opened this issue Jun 21, 2017 · 5 comments
Labels
closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. type-enhancement

Comments

@AndriySvyryd
Copy link
Member

AndriySvyryd commented Jun 21, 2017

Add a way of generating separate scripts for just the non-breaking changes and for the breaking changes. This would allow the previous version of the application to continue to work against the database while the new version is being deployed/tested.
The pattern is sometimes called “Expand/Contract Migrations” because it groups migrations into two categories: Those that are non-destructive expansions of the DB schema and those that are destructive contractions of the schema.

@ajcvickers
Copy link
Member

@AndriySvyryd Can you add a bit more explanation, like what we did in triage.

@AndriySvyryd
Copy link
Member Author

AndriySvyryd commented Jun 30, 2017

It's currently possible to do it manually by carefully planning out the changes. As the first improvement we could make this easier by adding a flag to validate that the new migration has no breaking changes.

@AndriySvyryd AndriySvyryd removed their assignment Jun 30, 2017
@bricelam
Copy link
Contributor

Possibly covered by dotnet/EntityFramework.Docs#691

@ajcvickers
Copy link
Member

We discussed this again and decided that, beyond guidance (possibly a case study) there is nothing we're going to do here.

@ajcvickers ajcvickers added closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. and removed propose-close labels Jan 24, 2019
@ajcvickers ajcvickers removed this from the Backlog milestone Jan 24, 2019
@ajcvickers
Copy link
Member

Also, per triage, pinging @divega

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. type-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants