schambers/fluentmigrator — Issue #179: Allow access to MigrationContext from a migration
Author: mkedobbs
Created: 2011-10-18 20:16:43+00:00
State: open

I've run into a use case where I want to be able to version seed data along with the migrations on a per-environment basis. Since profiles are run after all migrations, they do not fulfill this use case as implemented.

Ideally, I'd like to be able to access the migration context from a migration to either access the current profile from a given migration or to access the current migration number from a profile-based migration. Allowing the migration context to be read from a given migration would fulfill this use case.