Do not try to upgrade database when using clean install

This commit is contained in:
ByteHamster 2019-10-20 23:48:23 +02:00
parent fea84424e3
commit c7415924e0
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ public class PreferenceUpgrader {
}
private static void upgrade(int oldVersion) {
if (oldVersion == -1) {
return;
}
if (oldVersion < 1070196) {
// migrate episode cleanup value (unit changed from days to hours)
int oldValueInDays = UserPreferences.getEpisodeCleanupValue();