hotfix for versions repo in android

This commit is contained in:
InsanusMokrassar 2021-04-20 19:38:07 +06:00
parent 50c1cd8215
commit b5072486b4

View File

@ -21,14 +21,12 @@ class AndroidSQLStandardVersionsRepoProxy(
private val tableVersionColumnName = "version"
init {
runBlocking(DatabaseCoroutineContext) {
database.writableTransaction {
createTable(
tableName,
tableNameColumnName to ColumnType.Text.NOT_NULLABLE,
tableVersionColumnName to ColumnType.Numeric.INTEGER()
)
}
database.blockingWritableTransaction {
createTable(
tableName,
tableNameColumnName to ColumnType.Text.NOT_NULLABLE,
tableVersionColumnName to ColumnType.Numeric.INTEGER()
)
}
}