FIX: notNull -> null transition must be applied also to history

This commit is contained in:
Roland Praml committed 2022-03-14 14:13:10 +01:00
1 parent 5b8bb41598
commit 610a8b2df6
5 files changed
+34 -38

No files matched your search

@@ -757,7 +757,7 @@ public class BaseTableDdl implements TableDdl {
if (isTrue(alter.isWithHistory())) {
// we will apply only type changes or notNull -> null transition
boolean isNull = false; // TODO: Boolean.FALSE.equals(alter.isNotnull());
boolean isNull = Boolean.FALSE.equals(alter.isNotnull());
boolean applyToHistory = alter.getType() != null || isNull;
if (applyToHistory) {
platformDdl.regenerateHistoryTriggers(writer, alter.getTableName());