From bce2dd1d1ba7203b80348a83331c707ad67caca9 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 12 Jan 2023 10:23:10 -0500 Subject: [PATCH] Fix v171 migration. Copy-pasted from the old one, but forgot that the sms table no longer exists... --- .../database/helpers/migration/V171_ThreadForeignKeyFix.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/helpers/migration/V171_ThreadForeignKeyFix.kt b/app/src/main/java/org/thoughtcrime/securesms/database/helpers/migration/V171_ThreadForeignKeyFix.kt index a7235359c..265bb558b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/helpers/migration/V171_ThreadForeignKeyFix.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/helpers/migration/V171_ThreadForeignKeyFix.kt @@ -82,11 +82,6 @@ object V171_ThreadForeignKeyFix : SignalDatabaseMigration { .where("thread_id = ?", secondaryId) .run() - db.update("sms") - .values("thread_id" to primaryId) - .where("thread_id = ?", secondaryId) - .run() - db.update("pending_retry_receipts") .values("thread_id" to primaryId) .where("thread_id = ?", secondaryId)