title: Handling enum changes in Entity Framework 5
body: <p>In <a href="https://stackoverflow.com/questions/11909537/does-the-new-migrations-feature-of-entity-framework-5-fully-support-enum-changes/11941863#11941863">this question</a>, I discovered that enum changes are not handled by Entity Framework migrations. In fact, enum changes don't even result in a model changed error, so you can change enums at will with no controls. </p>
  
  <p>Enum changes that result in different int values, such as order changes or removals, can effectively render the database data invalid, since the meaning of the stored integer is now wrong.</p>
  
  <p>In order for Migrations to work, you have to manually execute custom SQL that changes the changed enum values.</p>
  
  <p>The problem is, the developer has to remember to do this, and if there was an oversight then effective data corruption can occur.</p>
  
  <p>How can someone put into place checks against this? Is it possible to, in the event an enum changes, throw a model change error or something like this?</p>