mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-29 14:52:14 +08:00
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:
parent
6d33614179
commit
1f35d57933
src
@ -294,7 +294,7 @@ features:
|
|||||||
Assert.That(_repository.Table.First().Version, Is.EqualTo(666));
|
Assert.That(_repository.Table.First().Version, Is.EqualTo(666));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test, Ignore("Fix pending")]
|
[Test]
|
||||||
public void SameMigrationClassCanEvolve() {
|
public void SameMigrationClassCanEvolve() {
|
||||||
Init(new[] { typeof(DataMigrationSameMigrationClassCanEvolve) });
|
Init(new[] { typeof(DataMigrationSameMigrationClassCanEvolve) });
|
||||||
|
|
||||||
|
@ -145,7 +145,6 @@ namespace Orchard.Data.Migration {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dataMigrationRecord.Version = current;
|
dataMigrationRecord.Version = current;
|
||||||
_dataMigrationRepository.Update(dataMigrationRecord);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user