mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-07 17:19:32 +00:00
hotfix for versions repo in android
This commit is contained in:
@@ -21,8 +21,7 @@ class AndroidSQLStandardVersionsRepoProxy(
|
|||||||
private val tableVersionColumnName = "version"
|
private val tableVersionColumnName = "version"
|
||||||
|
|
||||||
init {
|
init {
|
||||||
runBlocking(DatabaseCoroutineContext) {
|
database.blockingWritableTransaction {
|
||||||
database.writableTransaction {
|
|
||||||
createTable(
|
createTable(
|
||||||
tableName,
|
tableName,
|
||||||
tableNameColumnName to ColumnType.Text.NOT_NULLABLE,
|
tableNameColumnName to ColumnType.Text.NOT_NULLABLE,
|
||||||
@@ -30,7 +29,6 @@ class AndroidSQLStandardVersionsRepoProxy(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
override suspend fun getTableVersion(tableName: String): Int? = database.writableTransaction {
|
override suspend fun getTableVersion(tableName: String): Int? = database.writableTransaction {
|
||||||
select(
|
select(
|
||||||
|
Reference in New Issue
Block a user