mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-17 22:03:50 +00:00
fixes in versions repo
This commit is contained in:
parent
4790fe0aea
commit
b61d2ae2eb
@ -13,12 +13,12 @@ interface VersionsRepo<T> : Repo {
|
|||||||
* By default, instance of this interface will check that version of table with name [tableName] is less than
|
* By default, instance of this interface will check that version of table with name [tableName] is less than
|
||||||
* [version] or is absent
|
* [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] didn't found, will be called [onCreate]. Then in case if [tableName] have version less
|
||||||
* * In case if [tableName] have version less than parameter [version], it will increase version one-by-one
|
* than parameter [version] or null, it will increase version one-by-one until database version will be equal to
|
||||||
* until database version will be equal to [version]
|
* [version]
|
||||||
*
|
*
|
||||||
* @param version Current version of table
|
* @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
|
* @param onUpdate This callback will be called after **iterative** changing of version. It is expected that parameter
|
||||||
* "to" will always be greater than "from"
|
* "to" will always be greater than "from"
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user