<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend override </span><spanclass="token keyword">fun </span><ahref="set-table-version.html"><spanclass="token function">setTableVersion</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">tableName<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">version<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">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 punctuation">, </span></span><spanclass="parameter ">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></span></span><spanclass="token punctuation">)</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><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>. Then in case if <ahref="set-table-version.html">tableName</a> have version less than parameter <ahref="set-table-version.html">version</a> or null, it will increase version one-by-one until database version will be equal to <ahref="set-table-version.html">version</a></p><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>version</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Current version of table</p></div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>on</span><wbr></wbr><span><span>Create</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">This callback will be called in case when repo have no information about table</p></div></div></div></div><divclass="table-row"data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain"data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"