From e63eb19ce41f367895db4f5da4c811303d0153b4 Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Sat, 13 Jun 2020 13:15:16 +0200 Subject: Adjust icon style to master --- .../notes/persistence/migration/Migration_17_18.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_17_18.java (limited to 'app/src/main/java/it/niedermann/owncloud/notes/persistence/migration') diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_17_18.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_17_18.java new file mode 100644 index 00000000..6faa9016 --- /dev/null +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/migration/Migration_17_18.java @@ -0,0 +1,14 @@ +package it.niedermann.owncloud.notes.persistence.migration; + +import android.database.sqlite.SQLiteDatabase; + +import androidx.annotation.NonNull; + +public class Migration_17_18 { + /** + * Add a new column to store the sorting method for a category note list + */ + public Migration_17_18(@NonNull SQLiteDatabase db) { + db.execSQL("ALTER TABLE CATEGORIES ADD COLUMN CATEGORY_SORTING_METHOD INTEGER DEFAULT 0"); + } +} -- cgit v1.2.3