From b61d2ae2eb9613c0004228a482035b61b94345cc Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 7 Apr 2022 15:41:08 +0600 Subject: [PATCH] fixes in versions repo --- .../dev/inmo/micro_utils/repos/versions/VersionsRepo.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 ee7cbab700f..f372476d2f1 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 @@ -13,12 +13,12 @@ interface VersionsRepo : Repo { * By default, instance of this interface will check that version of table with name [tableName] is less than * [version] or is absent * - * * In case if [tableName] didn't found, will be called [onCreate] and version of table will be set up to [version] - * * In case if [tableName] have version less than parameter [version], it will increase version one-by-one - * until database version will be equal to [version] + * In case if [tableName] didn't found, will be called [onCreate]. Then in case if [tableName] have version less + * than parameter [version] or null, it will increase version one-by-one until database version will be equal to + * [version] * * @param version Current version of table - * @param onCreate This callback will be called in case when table have no information about table + * @param onCreate This callback will be called in case when repo have no information about table * @param onUpdate This callback will be called after **iterative** changing of version. It is expected that parameter * "to" will always be greater than "from" */