mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-23 13:26:15 +03:00
fix the version conflict bug in AbstractNotesDatabase.java
This commit is contained in:
parent
592e45ce71
commit
41e393c117
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue