Uploaded image for project: 'Liquibase Core'
  1. CORE-3375

addNotNullConstraint on h2 still requires (unused) columnDataType

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 3.6.2
    • Fix versions: None
    • Environment:

      H2

    • Sprint:

      Description

      CORE-1996 Closed 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
        public ValidationErrors validate(...) {
          ...
          if (... || database instanceof H2Database) {
            validationErrors.checkRequiredField("columnDataType", setNullableStatement.getColumnDataType());
          }
        }
      

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

        Attachments

          Activity

            People

            • Reporter:
              jira Tobias Liefke
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: