From 41e393c1178e5669e9b09b5dc5e757886c5ca11f Mon Sep 17 00:00:00 2001 From: Peter S Date: Fri, 29 May 2020 15:05:34 +0800 Subject: [PATCH] fix the version conflict bug in AbstractNotesDatabase.java --- .../owncloud/notes/persistence/AbstractNotesDatabase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java index f69b0416..da689211 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java @@ -32,7 +32,7 @@ import it.niedermann.owncloud.notes.util.NoteUtil; abstract class AbstractNotesDatabase extends SQLiteOpenHelper { private static final String TAG = AbstractNotesDatabase.class.getSimpleName(); - private static final int database_version = 15; + private static final int database_version = 16; @NonNull private final Context context; @@ -439,7 +439,7 @@ abstract class AbstractNotesDatabase extends SQLiteOpenHelper { tmpNotesCursor.close(); db.execSQL("DROP TABLE IF EXISTS " + tmpTableNotes); } - if (oldVersion < 15) { + if (oldVersion < 16) { // add a new column to store the sorting method for a category note list db.execSQL("ALTER TABLE " + table_category + " ADD COLUMN " + key_category_sorting_method + " INTEGER DEFAULT 0"); }