Skip to content

Commit

Permalink
withLogs parmeter on SchemaUtils#createMissingTablesAndColumns isn't …
Browse files Browse the repository at this point in the history
…passed to addMissingcolumnsStatements #1383
  • Loading branch information
Tapac committed Nov 27, 2021
1 parent 6bdf063 commit b1453c9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ object SchemaUtils {
}

val alterStatements = logTimeSpent("Preparing alter table statements", withLogs) {
addMissingColumnsStatements(*tables)
addMissingColumnsStatements(tables = tables, withLogs)
}
logTimeSpent("Executing alter table statements", withLogs) {
execStatements(inBatch, alterStatements)
Expand All @@ -324,11 +324,11 @@ object SchemaUtils {
createStatements(tables = tablesToCreate.toTypedArray())
}
val alterStatements = logTimeSpent("Preparing alter table statements", withLogs) {
addMissingColumnsStatements(tables = tablesToAlter.toTypedArray())
addMissingColumnsStatements(tables = tablesToAlter.toTypedArray(), withLogs)
}
val executedStatements = createStatements + alterStatements
val modifyTablesStatements = logTimeSpent("Checking mapping consistence", withLogs) {
checkMappingConsistence(tables = tablesToAlter.toTypedArray()).filter { it !in executedStatements }
checkMappingConsistence(tables = tablesToAlter.toTypedArray(), withLogs).filter { it !in executedStatements }
}
return executedStatements + modifyTablesStatements
}
Expand Down

0 comments on commit b1453c9

Please sign in to comment.