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

Enum Lookup Tables don't migrate updates to Enums #11

Open
WilliamABradley opened this issue May 23, 2019 · 2 comments
Open

Enum Lookup Tables don't migrate updates to Enums #11

WilliamABradley opened this issue May 23, 2019 · 2 comments

Comments

@WilliamABradley
Copy link

I am liking this EF Core extension,
however,
If you created an Enum in a previous migration, then update the Enum values, the new values are not migrated to the Lookup Table.

This could potentially be fixed by doing a comparison of existing Lookup Tables against the current state of the Enum to see if it is different.

@WilliamABradley WilliamABradley changed the title Enum Lookup Tables cannot be migrated when Modified Enum Lookup Tables doesn't migrate updates to Enums May 23, 2019
@WilliamABradley WilliamABradley changed the title Enum Lookup Tables doesn't migrate updates to Enums Enum Lookup Tables don't migrate updates to Enums May 23, 2019
@WilliamABradley
Copy link
Author

ping @pergerch

@pergerch pergerch assigned pergerch and unassigned pergerch May 30, 2019
@pergerch
Copy link
Member

@WilliamABradley thank you for pointing that out. I remember having issues with migrations in the past. I think the problem was when changing the existing enums values only. It was necessary to manually modify the migrations. New ones were working properly.

Feel free to send a PR with improvements as I don't have much time to work on this at the moment. But I'll keep it on the radar

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

No branches or pull requests

2 participants