<divclass="content sourceset-depenent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="symbol monospace"><spanclass="token keyword">abstract </span><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="set-table-version.html"><spanclass="token function">setTableVersion</span></a><spanclass="token punctuation">(</span>tableName<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token punctuation">, </span>version<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span>onCreate<spanclass="token operator">: </span><spanclass="token keyword">suspend </span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token punctuation">.</span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator"> = </span>{}<spanclass="token punctuation">, </span>onUpdate<spanclass="token operator">: </span><spanclass="token keyword">suspend </span><spanclass="token keyword"></span><ahref="index.html">T</a><spanclass="token punctuation">.</span><spanclass="token punctuation">(</span><spanclass="token keyword"></span>from<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span><spanclass="token keyword"></span>to<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator"> = </span>{ _, _ ->}<spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">By default, instance of this interface will check that version of table with name <ahref="set-table-version.html">tableName</a> is less than <ahref="set-table-version.html">version</a> or is absent</p><ul><li><pclass="paragraph">In case if <ahref="set-table-version.html">tableName</a> didn't found, will be called <ahref="set-table-version.html">onCreate</a> and version of table will be set up to <ahref="set-table-version.html">version</a></p></li><li><pclass="paragraph">In case if <ahref="set-table-version.html">tableName</a> have version less than parameter <ahref="set-table-version.html">version</a>, it will increase version one-by-one until database version will be equal to <ahref="set-table-version.html">version</a></p></li></ul><h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span><span>version</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">Current version of table</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>on</span><wbr></wbr><span><span>Create</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">This callback will b