#955 - Migration "add column" DDL with check constraint is missing constraint name

This commit is contained in:
rob bygrave
2017-05-21 01:23:55 +12:00
parent fe9500e6d0
commit d0c1ae76f4
4 changed files with 17 additions and 0 deletions
@@ -843,6 +843,7 @@ public class BaseTableDdl implements TableDdl {
buffer.append(" not null");
}
if (hasValue(column.getCheckConstraint())) {
buffer.append(" constraint ").append(column.getCheckConstraintName());
buffer.append(" ").append(column.getCheckConstraint());
}
}