mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
DB Migration Check for Users not on current DB
This commit is contained in:
parent
20dc8adac0
commit
a6882e7bdd
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Data.SQLite;
|
using System.Data.SQLite;
|
||||||
using Marr.Data;
|
using Marr.Data;
|
||||||
using Marr.Data.Reflection;
|
using Marr.Data.Reflection;
|
||||||
|
@ -127,6 +127,11 @@ namespace NzbDrone.Core.Datastore
|
||||||
return dataMapper;
|
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;
|
return db;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue