Skip to content

Commit

Permalink
#1556 mark card as done: reset etags for update
Browse files Browse the repository at this point in the history
  • Loading branch information
desperateCoder committed Jan 15, 2024
1 parent 515d1eb commit 35f94be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public Migration_32_33() {
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");
}
}

0 comments on commit 35f94be

Please sign in to comment.