setNullable method

Sets a column as nullable.

Syntax
ColumnSchema ColumnSchema.setNullable(
  boolean nullable
)
Parameters
  • nullable   Set true if this column should accept null values; otherwise, set false.

Remarks

Columns in primary and unique keys are always not nullable. BIT-type columns are not nullable by default.

Returns

This ColumnSchema with nullable defined.