private void RemoveMigration(IMigration migration, MigrationAttribute attr) { // we're removing this one _logger.MigrateDown(Current, migration.Name); if (! DryRun) { migration.Down(); _provider.MigrationUnApplied(attr.Version); _provider.Commit(); migration.AfterDown(); } }
private void RemoveMigration(IMigration migration, MigrationAttribute attr) { // we're removing this one _logger.MigrateDown(Current, migration.Name); if (!DryRun) { migration.Down(); _provider.MigrationUnApplied(attr.Version); _provider.Commit(); migration.AfterDown(); } }
void RemoveMigration(IMigration migration, MigrationAttribute attr) { // we're removing this one _logger.MigrateDown(Current, migration.Name); if (!DryRun) { var tProvider = _provider as TransformationProvider; if (tProvider != null) { tProvider.CurrentMigration = migration; } migration.Down(); _provider.MigrationUnApplied(attr.Version, attr.Scope); _provider.Commit(); migration.AfterDown(); } }
private void RemoveMigration(IMigration migration, MigrationAttribute attr) { // we're removing this one _logger.MigrateDown(Current, migration.Name); if (! DryRun) { migration.Down(); var v = attr.GetVersion(migration.GetType()); _provider.MigrationUnApplied(v.Value, v.Key); _provider.Commit(); migration.AfterDown(); } }
void RemoveMigration(IMigration migration, MigrationAttribute attr) { // we're removing this one _logger.MigrateDown(Current, migration.Name); if (! DryRun) { var tProvider = _provider as TransformationProvider; if (tProvider != null) tProvider.CurrentMigration = migration; migration.Down(); _provider.MigrationUnApplied(attr.Version, attr.Scope); _provider.Commit(); migration.AfterDown(); } }