From 76ba554bf7fd8aca23b6c78c2ff1b959d918a0a8 Mon Sep 17 00:00:00 2001 From: Rick Busarow Date: Thu, 6 Aug 2020 13:21:22 -0500 Subject: [PATCH] create indices after the table rename --- .../main/java/dev/matrix/roomigrant/compiler/Migration.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/Migration.kt b/RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/Migration.kt index 7d4d254..5d4e29e 100644 --- a/RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/Migration.kt +++ b/RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/Migration.kt @@ -132,12 +132,6 @@ class Migration( execSql(sb.toString()) dropTable(table1.name) renameTable(tableMerge.name, table2.name) - tableDiff.indicesDiff.same.forEach { - createTableIndex(table2, it) - } - tableDiff.indicesDiff.added.forEach { - createTableIndex(table2, it) - } } tableDiff.indicesDiff.removed.forEach {