NuGet/NuGetGallery — pull request #962 by anurse (2013-03-27 22:15:33+00:00)
Title: Stop running migrations automatically

Guh. What is it with me and working on big changes... I've tried to tease this apart into smaller chunks but it's just not coming out cleanly. Here's an overview of the important areas:

1. There are lots of changes to the Data/ folder
2. There's a new Admin area (actually an MVC Area) which is pretty basic. ELMAH and DynamicData have been moved into that area.
3. Some minor CSS changes for the new Admin area.
4. And the big change: No more auto migrations.
1. On first use of the EntitiesContext, we now migrate to AddMinRequiredVersionColumn - which was the latest migration before we added this whole migration in stages thing
2. An admin user has to manually go to the admin dashboard and run migrations
3. AFTER running migrations, the admin has to manually invoke the "Rebuild EF Model" gesture on each instance in order to have them process the change
4. Any service/controller that wants to make decisions based on the presence of a migration can import the IDatabaseVersioningService and use the HasVersion method.

Again, sorry for length. If you skim through things like files in Facts and epic CSS formatting craziness, you shouldn't have too much trouble. I'll try to point out some interesting things.

This is NOT YET COMPLETE, still finishing up unit tests.