示例#1
0
        private void RunMigration(Migrator mig)
        {
            if (mig.DryRun)
                mig.Logger.Log("********** Dry run! Not actually applying changes. **********");

            if (_to == -1)
            {
               mig.MigrateToLastVersion();
            }
            else if(_to == -2)
            {
               mig.MigrateRedo();
            }
            else
            {
               mig.MigrateTo(_to);
            }
        }