Skip to main content

property Column.default_value : Constant | None

Value used to replace None inserted values. The default value can either be:
  • None:
  • a value matching the column’s data_type:
Each data type has its own default default_value value:
Columns part of the table keys cannot have None as their default value. Key columns with:
  • a numeric scalar data type default to 0:
  • an array data type must have their default value specified:
Changing the default value from:
  • None to something else affects both the past None values and the future ones:
  • non-None to something else does not affect the past values:
Changing the default value from non-None to None is impossible both:
  • for key columns:
  • and non-key columns: