update defaults in VersionsRepo

This commit is contained in:
InsanusMokrassar 2020-11-22 19:27:53 +06:00
parent 8bee29f683
commit 6bbe3a271f

View File

@ -25,7 +25,7 @@ interface VersionsRepo<T> : 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 = { _, _ ->}
)
}