exposed-migration-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/migration/jdbc/MigrationUtils.kt [71:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val (tablesToCreate, tablesToAlter) = tables.partition { !it.exists() } @OptIn(InternalApi::class) val createStatements = logTimeSpent(CREATE_TABLES_LOG_MESSAGE, withLogs) { SchemaUtils.createStatements(tables = tablesToCreate.toTypedArray()) } @OptIn(InternalApi::class) val createSequencesStatements = logTimeSpent(CREATE_SEQUENCES_LOG_MESSAGE, withLogs) { checkMissingSequences(tables = tables, withLogs).flatMap { it.createStatement() } } @OptIn(InternalApi::class) val alterStatements = logTimeSpent(ALTER_TABLES_LOG_MESSAGE, withLogs) { addMissingAndDropUnmappedColumns(tables = tablesToAlter.toTypedArray(), withLogs) } @OptIn(InternalApi::class) val modifyTablesStatements = logTimeSpent(MAPPING_CONSISTENCE_LOG_MESSAGE, withLogs) { mappingConsistenceRequiredStatements( tables = tablesToAlter.toTypedArray(), withLogs ).filter { it !in (createStatements + alterStatements) } } val allStatements = createStatements + createSequencesStatements + alterStatements + modifyTablesStatements return allStatements } @OptIn(InternalApi::class) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - exposed-migration-r2dbc/src/main/kotlin/org/jetbrains/exposed/v1/migration/r2dbc/MigrationUtils.kt [74:103]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val (tablesToCreate, tablesToAlter) = tables.partition { !it.exists() } @OptIn(InternalApi::class) val createStatements = logTimeSpent(CREATE_TABLES_LOG_MESSAGE, withLogs) { SchemaUtils.createStatements(tables = tablesToCreate.toTypedArray()) } @OptIn(InternalApi::class) val createSequencesStatements = logTimeSpent(CREATE_SEQUENCES_LOG_MESSAGE, withLogs) { checkMissingSequences(tables = tables, withLogs).flatMap { it.createStatement() } } @OptIn(InternalApi::class) val alterStatements = logTimeSpent(ALTER_TABLES_LOG_MESSAGE, withLogs) { addMissingAndDropUnmappedColumns(tables = tablesToAlter.toTypedArray(), withLogs) } @OptIn(InternalApi::class) val modifyTablesStatements = logTimeSpent(MAPPING_CONSISTENCE_LOG_MESSAGE, withLogs) { mappingConsistenceRequiredStatements( tables = tablesToAlter.toTypedArray(), withLogs ).filter { it !in (createStatements + alterStatements) } } val allStatements = createStatements + createSequencesStatements + alterStatements + modifyTablesStatements return allStatements } @OptIn(InternalApi::class) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -