#27 Fix for repeating migrations over and over...
This commit is contained in:
parent
7a90260207
commit
f4e4b9c02d
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
|
|
||||||
using LiteDB;
|
using LiteDB;
|
||||||
using SweetLib.Utils.Extensions;
|
|
||||||
|
|
||||||
namespace DML.Application.Core
|
namespace DML.Application.Core
|
||||||
{
|
{
|
||||||
|
@ -27,7 +26,7 @@ namespace DML.Application.Core
|
||||||
{
|
{
|
||||||
var baseVersion = Core.Database.Engine.UserVersion;
|
var baseVersion = Core.Database.Engine.UserVersion;
|
||||||
|
|
||||||
for (var step = baseVersion; step <= Version; step++)
|
for (var step = (ushort)(baseVersion + 1); step <= Version; step++)
|
||||||
{
|
{
|
||||||
Migrate(step);
|
Migrate(step);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue