exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/jdbc/SchemaUtils.kt [325:345]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val (tablesToCreate, tablesToAlter) = tables.partition { !it.exists() } @OptIn(InternalApi::class) val createStatements = logTimeSpent(CREATE_TABLES_LOG_MESSAGE, withLogs) { createStatements(tables = tablesToCreate.toTypedArray()) } @OptIn(InternalApi::class) val alterStatements = logTimeSpent(ALTER_TABLES_LOG_MESSAGE, withLogs) { addMissingColumnsStatements(tables = tablesToAlter.toTypedArray(), withLogs) } val executedStatements = createStatements + alterStatements @OptIn(InternalApi::class) val modifyTablesStatements = logTimeSpent(MAPPING_CONSISTENCE_LOG_MESSAGE, withLogs) { checkMappingConsistence( tables = tablesToAlter.toTypedArray(), withLogs ).filter { it !in executedStatements } } return executedStatements + modifyTablesStatements - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - exposed-r2dbc/src/main/kotlin/org/jetbrains/exposed/v1/r2dbc/SchemaUtils.kt [317:337]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val (tablesToCreate, tablesToAlter) = tables.partition { !it.exists() } @OptIn(InternalApi::class) val createStatements = logTimeSpent(CREATE_TABLES_LOG_MESSAGE, withLogs) { createStatements(tables = tablesToCreate.toTypedArray()) } @OptIn(InternalApi::class) val alterStatements = logTimeSpent(ALTER_TABLES_LOG_MESSAGE, withLogs) { addMissingColumnsStatements(tables = tablesToAlter.toTypedArray(), withLogs) } val executedStatements = createStatements + alterStatements @OptIn(InternalApi::class) val modifyTablesStatements = logTimeSpent(MAPPING_CONSISTENCE_LOG_MESSAGE, withLogs) { checkMappingConsistence( tables = tablesToAlter.toTypedArray(), withLogs ).filter { it !in executedStatements } } return executedStatements + modifyTablesStatements - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -