We have a project that uses ef-migrations containing multiple (read ~60) migrations created over a long period of development. Naturally, some of these
After I experienced the problem first hand..
We decided to create smaller migrations. If the change was big enough that it required a GO command, then the developer was attempting to change too much in a migration. Unfortunately, the only way to control what goes into a migration is to comment out the changes.
I also pondered why I wanted the script so badly. Its not like I didn't trust EF to perform the migration correctly, (provided I tested it first). Ideally I would never and (thankfully) have yet to have a reason to modify it. I've only looked at it a few times when I started using EF Code First.
I don't like this answer, but I don't think it serves a purpose other than debugging a migration for Entity Framework Code First.