Skip to content

Commit a564b54

Browse files
committed
chore(fc): remove migration from 16=>17 allow reset
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent dc0e64a commit a564b54

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

services/flipchat/sdk/src/main/kotlin/xyz/flipchat/internal/db/FcAppDatabase.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import java.io.File
5858
AutoMigration(from = 13, to = 14, spec = FcAppDatabase.Migration13To14::class),
5959
AutoMigration(from = 14, to = 15, spec = FcAppDatabase.Migration14To15::class),
6060
AutoMigration(from = 15, to = 16),
61-
AutoMigration(from = 16, to = 17, spec = FcAppDatabase.Migration16To17::class),
61+
// explicit no migration to fallback to reset
6262
],
6363
version = 17,
6464
)
@@ -123,14 +123,6 @@ internal abstract class FcAppDatabase : RoomDatabase(), ClosableDatabase {
123123
}
124124
}
125125

126-
@DeleteTable(tableName = "message_contents")
127-
class Migration16To17 : Migration(16, 17), AutoMigrationSpec {
128-
override fun migrate(db: SupportSQLiteDatabase) {
129-
// drop messages and contents to flatten things
130-
db.execSQL("DELETE FROM messages")
131-
}
132-
}
133-
134126
@Synchronized
135127
override fun closeDb() {
136128
if (instance != null) {

0 commit comments

Comments
 (0)