EF 4.3.1 Migration Exception - AlterColumn defaultValueSql creates same default constraint name for different tables
I have a DB that I created using the OOB database initializer, and I am using Code First with EF 4.3.1. I wanted to take advantage of the new "IgnoreChanges" flag on the Add-Migration cmdlet, so that I can alter some of my columns and add a default SQL value. Essentially, some of my entities have a column named DateLastUpdated, which I would like to set the DEFAULT to the sql expression GETDATE(). I created the InitialMigration using "add-migration InitialMigration -ignorechanges", and then I added the following to the Up() and Down(): public override void Up() { AlterColumn("CustomerLocations