private void ApplyMigration(IMigration migration, MigrationAttribute attr) {
			// we're adding this one
			_logger.MigrateUp(Current, migration.Name);
			if (! DryRun) {
				migration.Up();
				_provider.MigrationApplied(attr.Version);
				_provider.Commit();
				migration.AfterUp();
			}
		}
Example #2
0
 private void ApplyMigration(IMigration migration, MigrationAttribute attr)
 {
     // we're adding this one
     _logger.MigrateUp(Current, migration.Name);
     if (!DryRun)
     {
         migration.Up();
         _provider.MigrationApplied(attr.Version);
         _provider.Commit();
         migration.AfterUp();
     }
 }
        void ApplyMigration(IMigration migration, MigrationAttribute attr)
        {
            // we're adding this one
            _logger.MigrateUp(Current, migration.Name);
            if (!DryRun)
            {
                var tProvider = _provider as TransformationProvider;
                if (tProvider != null)
                {
                    tProvider.CurrentMigration = migration;
                }

                migration.Up();
                _provider.MigrationApplied(attr.Version, attr.Scope);
                _provider.Commit();
                migration.AfterUp();
            }
        }
 private void ApplyMigration(IMigration migration, MigrationAttribute attr)
 {
     // we're adding this one
     _logger.MigrateUp(Current, migration.Name);
     if(! DryRun)
     {
         migration.Up();
         var v = attr.GetVersion(migration.GetType());
         _provider.MigrationApplied(v.Value, v.Key);
         _provider.Commit();
         migration.AfterUp();
     }
 }
Example #5
0
		void ApplyMigration(IMigration migration, MigrationAttribute attr)
		{
			// we're adding this one
			_logger.MigrateUp(Current, migration.Name);
			if (! DryRun)
			{
                var tProvider = _provider as TransformationProvider;
			    if (tProvider != null) 
                    tProvider.CurrentMigration = migration;

				migration.Up();
                _provider.MigrationApplied(attr.Version, attr.Scope);
				_provider.Commit();
				migration.AfterUp();
			}
		}