Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordesperateCoder <echotodevnull@gmail.com>2024-01-15 14:47:19 +0300
committerdesperateCoder <echotodevnull@gmail.com>2024-01-15 14:47:19 +0300
commit35f94be61a18013a42cd5b1d1c2955b28a26d405 (patch)
treea04836b6e84be1ed3d6aab37a80eb0e0d9c34e40 /app/src/main
parent515d1eb367ceded0515cabfc9b1a55cdde2f6f7f (diff)
#1556 mark card as done: reset etags for update
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/database/migration/Migration_32_33.java5
1 files changed, 4 insertions, 1 deletions
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 c44c1a72f..c19b06715 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
@@ -17,6 +17,9 @@ public class Migration_32_33 extends Migration {
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");
+ database.execSQL("UPDATE `Account` SET `boardsEtag` = NULL");
+ database.execSQL("UPDATE `Board` SET `etag` = NULL");
+ database.execSQL("UPDATE `Stack` SET `etag` = NULL");
+ database.execSQL("UPDATE `Card` SET `etag` = NULL");
}
}