Fix DatabaseConsistencyTest.

This commit is contained in:
Greyson Parrelli 2023-04-14 23:53:24 -04:00 committed by Cody Henthorne
parent 07f6baf7c1
commit 646f79be7d

View file

@ -82,6 +82,7 @@ class DatabaseConsistencyTest {
.split("\n")
.map { it.trim() }
.joinToString(separator = " ")
.replace(Regex("\\s+"), " ")
.replace(Regex.fromLiteral("( "), "(")
.replace(Regex.fromLiteral(" )"), ")")
.replace(Regex("CREATE TABLE \"([a-z]+)\""), "CREATE TABLE $1") // for some reason SQLite will wrap table names in quotes for upgraded tables. This unwraps them.