From 62e0e533542add087b0c29d84e2ea7efa747a377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sat, 9 May 2020 10:59:25 +0200 Subject: [PATCH] [DB] Force attendance sync in models migration. --- .../pl/szczodrzynski/edziennik/data/db/migration/Migration86.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration86.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration86.kt index 2df57788..add43d71 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration86.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration86.kt @@ -172,5 +172,7 @@ class Migration86 : Migration(85, 86) { database.execSQL("""CREATE UNIQUE INDEX index_metadata_profileId_thingType_thingId ON "metadata" (profileId, thingType, thingId)""") database.execSQL("""INSERT INTO metadata (profileId, metadataId, thingType, thingId, seen, notified) SELECT profileId, metadataId, thingType, thingId, seen, notified FROM _metadata""") database.execSQL("""DROP TABLE _metadata""") + + database.execSQL("""DELETE FROM endpointTimers WHERE endpointId IN (1080, 1081, 2050, 1090, 1010, 1014);""") } }