We're updating the issue view to help you get more done. 

addNotNullConstraint on h2 still requires (unused) columnDataType

Description

has made the parameter "columnDataType" obsolete for "addNotNullConstraint" and "dropNotNullConstraint" on H2, as it is not necessary for the generated SQL anymore.

But it is still marked as required during validation:

SetNullableGenerator.java

1 2 3 4 5 6 public ValidationErrors validate(...) { ... if (... || database instanceof H2Database) { validationErrors.checkRequiredField("columnDataType", setNullableStatement.getColumnDataType()); } }

Workaround: Specify a "columnDataType", which is ignored anyway.

Environment

H2

Status

Assignee

Unassigned

Reporter

Tobias Liefke

Labels

None

Components

Fix versions

Affects versions

3.6.2

Priority

Minor