initTablesInTransaction

fun initTablesInTransaction(vararg tables: <Error class: unknown class>, database: <Error class: unknown class>, inBatch: Boolean = false, withLogs: Boolean = true)(source)

Code in this function mostly duplicates Exposed SchemaUtils.createMissingTablesAndColumns. It made due to deprecation status of the last one and potential lost of it in future updates.

Code doing:

  • Creating missed tables

  • Altering missed tables (where possible)

  • Calculate problems with checkMappingConsistence and add them in execution too

All changes made in transaction with database as its db argument