From 515d1eb367ceded0515cabfc9b1a55cdde2f6f7f Mon Sep 17 00:00:00 2001 From: desperateCoder Date: Mon, 15 Jan 2024 12:18:42 +0100 Subject: [PATCH] #1556 mark card as done: reset etags for update --- .../nextcloud/deck/database/migration/Migration_32_33.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java b/app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java index 7de80cf20..c44c1a72f 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java @@ -16,5 +16,7 @@ public Migration_32_33() { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { database.execSQL("ALTER TABLE `Card` add column done INTEGER"); + // reset etags, so cards will be fetched after app-update + database.execSQL("UPDATE `Card` SET etag = NULL"); } }