Fix bug in data migration: don't call "Repo.Update"

It's not needed, and it actually doesn't work as expected.

--HG--
branch : dev
This commit is contained in:
Renaud Paquay 2010-07-21 17:59:09 -07:00
parent 6d33614179
commit 1f35d57933
2 changed files with 1 additions and 2 deletions

View File

@ -294,7 +294,7 @@ features:
Assert.That(_repository.Table.First().Version, Is.EqualTo(666));
}
[Test, Ignore("Fix pending")]
[Test]
public void SameMigrationClassCanEvolve() {
Init(new[] { typeof(DataMigrationSameMigrationClassCanEvolve) });

View File

@ -145,7 +145,6 @@ namespace Orchard.Data.Migration {
}
else {
dataMigrationRecord.Version = current;
_dataMigrationRepository.Update(dataMigrationRecord);
}
}
}