Create a new data type - postgres docs
Arguments:
type_name
[Name] - name of the new typevalues
[array of strings or object] if an array the contents are possible values for an enum type, if an object names and types for a composite type
Aliases: addType
Reverse Operation: dropType
Drop a custom data type - postgres docs
Arguments:
type_name
[Name] - name of the new type
Rename a data type - postgres docs
Arguments:
Add attribute to an existing data type - postgres docs
Arguments:
type_name
[Name] - name of the typeattribute_name
[string] - name of the attribute to addattribute_type
[string] - type of the attribute to add
Drop attribute from a data type - postgres docs
Arguments:
type_name
[Name] - name of the typeattribute_name
[string] - name of the attribute to dropoptions
[object] - options:ifExists
[boolean] - default false
Set data type of an existing attribute of data type - postgres docs
Arguments:
type_name
[Name] - name of the typeattribute_name
[string] - name of the attributeattribute_type
[string] - new type of the attribute
Add value to a list of enum data type - postgres docs
Arguments:
type_name
[Name] - name of the typevalue
[string] - value to add to listoptions
[object] - options:ifNotExists
[boolean] - default falsebefore
[string] - value before which the new value should be addafter
[string] - value after which the new value should be add
Rename an attribute of data type - postgres docs
Arguments:
type_name
[Name] - name of the typeattribute_name
[string] - name of the attribute to renamenew_attribute_name
[string] - new name of the attribute
Rename a value of enum data type - postgres docs
Arguments:
type_name
[Name] - name of the typevalue
[string] - value to renamenew_value
[string] - new value