CallLinkTable migration to add necessary columns for integration.

This commit is contained in:
Alex Hart
2023-05-05 14:03:17 -03:00
committed by Cody Henthorne
parent 9eadd92d05
commit a1eb33b1f6
5 changed files with 108 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ class DatabaseConsistencyTest {
.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.
.replace(Regex("CREATE TABLE \"([a-zA-Z_]+)\""), "CREATE TABLE $1") // for some reason SQLite will wrap table names in quotes for upgraded tables. This unwraps them.
}
private class InMemoryTestHelper(private val application: Application) : SQLiteOpenHelper(application, null, null, 1) {