#27 Fix for repeating migrations over and over...

This commit is contained in:
Serraniel 2019-02-16 19:45:06 +01:00
parent 7a90260207
commit f4e4b9c02d
Signed by untrusted user who does not match committer: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -15,7 +15,6 @@
using LiteDB;
using SweetLib.Utils.Extensions;
namespace DML.Application.Core
{
@ -27,7 +26,7 @@ namespace DML.Application.Core
{
var baseVersion = Core.Database.Engine.UserVersion;
for (var step = baseVersion; step <= Version; step++)
for (var step = (ushort)(baseVersion + 1); step <= Version; step++)
{
Migrate(step);
}