Adds a not-null constraint to an existing table. If a defaultNullValue attribute is passed, all null values for the column will be updated to the passed value before the constraint is applied.
Name | Description |
catalogName | Name of the catalog@ v3.0E.g. 'cat' |
columnDataType | Current data type of the columnE.g. 'int'Required for: informix, mariadb, mssql, mysql |
columnName | Name of the column to add the constraint toE.g. 'id' |
constraintName | Created constraint name (if database supports names for NOT NULL constraints)E.g. 'const_name' |
defaultNullValue | Value to set all currently null values to. If not set, change will fail if null values existE.g. 'A String' |
schemaName | Name of the schemaE.g. 'public' |
tableName | Adds a not-null constraint to an existing table. If a defaultNullValue attribute is passed, all null values for the column will be updated to the passed value before the constraint is applied.E.g. 'person' |
validate | booleanThis is true if the not null constraint has 'ENABLE VALIDATE' set, or false if the not null constrain has 'ENABLE NOVALIDATE' set. |