Merge pull request #2764 from FOCONIS/fix-history-warning

Fix: DDL will get wrong hint for special migration
This commit is contained in:
Rob Bygrave
2022-07-29 08:40:24 +12:00
committed by GitHub
@@ -108,8 +108,9 @@ public class BaseTableDdl implements TableDdl {
// altered columns will be in the alterTable buffers.
// 'after' goes to the post-alter-buffer
if (!after.isEmpty()) {
writer.applyPostAlter().append("-- NOTE: table has @History - special migration may be necessary").newLine();
if (withHistory) {
writer.applyPostAlter().append("-- NOTE: table has @History - special migration may be necessary").newLine();
}
// here we run post migration scripts
for (String ddlScript : after) {
writer.applyPostAlter().appendStatement(translate(ddlScript, tableName, columnName, defaultValue));