initTablesInTransaction

fun initTablesInTransaction(vararg tables: ERROR CLASS: Symbol not found for Table, database: ERROR CLASS: Symbol not found for Database, 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