Skip to content

Set default value of an attribute through dql

A default value can be set to an attribute through the following DQL query.

Syntax:

ALTER TYPE <type_name> MODIFY (<attribute> (set default = <value to be set>)) PUBLISH

 

Example:

ALTER TYPE dm_document MODIFY (subject (set default = null)) PUBLISH

 

Published inDQL