mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
DB Migration Check for Users not on current DB
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Data.SQLite;
|
||||
using Marr.Data;
|
||||
using Marr.Data.Reflection;
|
||||
@@ -127,6 +127,11 @@ namespace NzbDrone.Core.Datastore
|
||||
return dataMapper;
|
||||
});
|
||||
|
||||
if (db.Migration > 100) //Quick DB Migration Check. This should get rid of users on old DB format
|
||||
{
|
||||
throw new CorruptDatabaseException("Invalid DB, Please Delete and Restart Lidarr");
|
||||
}
|
||||
|
||||
return db;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user