From 6ef777f41143b0068248bd51bc32ea345f1d47c5 Mon Sep 17 00:00:00 2001 From: triplem <160079+triplem@users.noreply.github.com> Date: Sun, 4 Nov 2018 20:50:55 +0100 Subject: [PATCH] enable downgrading to enable future db updates --- .../java/info/nightscout/androidaps/db/DatabaseHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index 831e5bcc0d..56f5d3b432 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -156,6 +156,12 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { } } + @Override + public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { + log.info("Do nothing for downgrading..."); + log.debug("oldVersion: {}, newVersion: {}", oldVersion, newVersion); + } + public int getOldVersion() { return oldVersion; }