Fix: DDL will get wrong hint for special migration

This commit is contained in:
Roland Praml
2022-07-28 15:05:24 +02:00
parent de143892af
commit fc09d7e4e7
@@ -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));