EntityFrameworkCore.Extensions icon indicating copy to clipboard operation
EntityFrameworkCore.Extensions copied to clipboard

Enum Lookup Tables don't migrate updates to Enums

Open WilliamABradley opened this issue 6 years ago • 2 comments

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 avatar May 23 '19 04:05 WilliamABradley

ping @pergerch

WilliamABradley avatar May 30 '19 05:05 WilliamABradley

@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

pergerch avatar May 30 '19 12:05 pergerch