From 6bbe3a271f9c880dd097a5d01ace27511984f526 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Nov 2020 19:27:53 +0600 Subject: [PATCH] update defaults in VersionsRepo --- .../dev/inmo/micro_utils/repos/versions/VersionsRepo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/common/src/commonMain/kotlin/dev/inmo/micro_utils/repos/versions/VersionsRepo.kt b/repos/common/src/commonMain/kotlin/dev/inmo/micro_utils/repos/versions/VersionsRepo.kt index e026f425924..ee7cbab700f 100644 --- a/repos/common/src/commonMain/kotlin/dev/inmo/micro_utils/repos/versions/VersionsRepo.kt +++ b/repos/common/src/commonMain/kotlin/dev/inmo/micro_utils/repos/versions/VersionsRepo.kt @@ -25,7 +25,7 @@ interface VersionsRepo : Repo { suspend fun setTableVersion( tableName: String, version: Int, - onCreate: suspend T.() -> Unit, - onUpdate: suspend T.(from: Int, to: Int) -> Unit + onCreate: suspend T.() -> Unit = {}, + onUpdate: suspend T.(from: Int, to: Int) -> Unit = { _, _ ->} ) }