exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/jdbc/SchemaUtils.kt [30:45]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun createStatements(vararg tables: Table): List { if (tables.isEmpty()) return emptyList() val toCreate = sortTablesByReferences(tables.asList()).filterNot { it.exists() } val alters = arrayListOf() @OptIn(InternalApi::class) return toCreate.flatMap { table -> val existingAutoIncSeq = table.autoIncColumn?.autoIncColumnType?.sequence?.takeIf { currentDialectMetadata.sequenceExists(it) } val (create, alter) = tableDdlWithoutExistingSequence(table, existingAutoIncSeq) alters += alter create } + alters } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - exposed-r2dbc/src/main/kotlin/org/jetbrains/exposed/v1/r2dbc/SchemaUtils.kt [28:43]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - suspend fun createStatements(vararg tables: Table): List { if (tables.isEmpty()) return emptyList() val toCreate = sortTablesByReferences(tables.asList()).filterNot { it.exists() } val alters = arrayListOf() @OptIn(InternalApi::class) return toCreate.flatMap { table -> val existingAutoIncSeq = table.autoIncColumn?.autoIncColumnType?.sequence?.takeIf { currentDialectMetadata.sequenceExists(it) } val (create, alter) = tableDdlWithoutExistingSequence(table, existingAutoIncSeq) alters += alter create } + alters } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -