mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
FIX: notNull -> null transition must be applied also to history
This commit is contained in:
1 parent
5b8bb41598
commit
610a8b2df6
5 files changed
+34
-38
No files matched your search
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user