1

Resolved

MigrateTo the same version

description

c/o Jeremy Newman
 
When a module is at a specific version and you attempt to migrate to the same version it will downgrade instead of staying at the current version.
 
The test scenario is as follows:
 
[Test]
public void MigrateModule2From2DownTo2()
{
Assert.AreEqual(0, db.GetModuleVersion("Module2"));
MigrationManager.MigrateTo(Assembly.GetExecutingAssembly(), "Module2", 2, db);
Assert.AreEqual(2, db.GetModuleVersion("Module2"));
MigrationManager.MigrateTo(Assembly.GetExecutingAssembly(), "Module2", 2, db);
Assert.AreEqual(2, db.GetModuleVersion("Module2"));
}
 
Thanks,
Jeremy

comments

AndyStewart wrote May 10, 2008 at 10:24 AM

in the latest google code checkin.

wrote Feb 13, 2013 at 1:20 AM

wrote May 14, 2013 at 8:24 AM

wrote May 14, 2013 at 8:24 AM

wrote Jun 12, 2013 at 1:49 AM