diff --git a/repos/common/src/main/kotlin/dev/inmo/micro_utils/repos/versions/AndroidSQLStandardVersionsRepoProxy.kt b/repos/common/src/main/kotlin/dev/inmo/micro_utils/repos/versions/AndroidSQLStandardVersionsRepoProxy.kt index f565147e09b..7c5937c81f0 100644 --- a/repos/common/src/main/kotlin/dev/inmo/micro_utils/repos/versions/AndroidSQLStandardVersionsRepoProxy.kt +++ b/repos/common/src/main/kotlin/dev/inmo/micro_utils/repos/versions/AndroidSQLStandardVersionsRepoProxy.kt @@ -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() + ) } }