Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca136dee authored by Oliver Scott's avatar Oliver Scott Committed by Bruno Martins
Browse files

Log failure to update DATABASE_VERSION

Change-Id: I7fc844acda3892cea68c1e9a44a89e87c997f789
parent 86420ad2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -409,6 +409,13 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
            upgradeVersion = 15;
        }
        // *** Remember to update DATABASE_VERSION above!
        if (upgradeVersion != newVersion) {
            Log.wtf(TAG, "warning: upgrading settings database to version "
                            + newVersion + " left it at "
                            + upgradeVersion +
                            " instead; this is probably a bug. Did you update DATABASE_VERSION?",
                    new RuntimeException("db upgrade error"));
        }
    }

    private void moveSettingsToNewTable(SQLiteDatabase db,