OpenSource » Database Migrator » Legacy Migrator
Clone URL:  

Migrator (No commit message)

Changeset 49ae302c31c2

Parent 2ed360b6e8b7

by danielpupek

Changes to one file · Browse files at 49ae302c31c2 Showing diff from parent 2ed360b6e8b7 Diff from another changeset...

 
175
176
177
 
178
179
180
181
182
183
184
 
185
186
187
 
200
201
202
203
 
204
205
206
 
175
176
177
178
179
180
181
182
183
184
 
185
186
187
188
 
201
202
203
 
204
205
206
207
@@ -175,13 +175,14 @@
  // Perform necessary migrations   try   { + var goingUp = this.CurrentVersion < toVersion;   // start transactions on all databases   this.BeginTransactions();     this._logger.Started(CurrentVersion, toVersion);     /// Execute the Begin Migration - if(this.CurrentVersion < toVersion) + if(goingUp)   InitializeMigration(BeginMigration).Up();   else   InitializeMigration(EndMigration).Down(); @@ -200,7 +201,7 @@
  }   }   - if (this.CurrentVersion < toVersion) + if (goingUp)   InitializeMigration(EndMigration).Up();   else   InitializeMigration(BeginMigration).Down();