Skip to main content

Schema Update

For each element* of the schema, when its value is being updated, Infrahub will determine what should be done from the list of possible actions:

  • allowed : Nothing is required, the update of this element is allowed
  • migration_required : The existing data must be migrated to the new schema
  • validate_constraint : The existing data needs to be validated to ensure that its compatible with the new schema
  • not_supported : The update of this element is not supported
info

In this context, an element represent either a Node, a Generic, an Attribute or a Relationship

Reference Guide

Node

NameStatus
namemigration_required
namespacemigration_required
descriptionallowed
labelallowed
branchnot_supported
default_filterallowed
human_friendly_idallowed
display_labelsallowed
include_in_menuallowed
menu_placementallowed
iconallowed
order_byallowed
uniqueness_constraintsvalidate_constraint
documentationallowed
inherit_fromvalidate_constraint
generate_profilevalidate_constraint
hierarchyvalidate_constraint
parentvalidate_constraint
childrenvalidate_constraint

Attribute

NameStatus
namemigration_required
kindvalidate_constraint
enumvalidate_constraint
choicesvalidate_constraint
regexvalidate_constraint
max_lengthvalidate_constraint
min_lengthvalidate_constraint
labelallowed
descriptionallowed
read_onlyallowed
uniquevalidate_constraint
optionalvalidate_constraint
branchnot_supported
order_weightallowed
default_valueallowed
allow_overrideallowed

Relationship

NameStatus
nameallowed
peervalidate_constraint
kindallowed
labelallowed
descriptionallowed
identifierallowed
cardinalityvalidate_constraint
min_countvalidate_constraint
max_countvalidate_constraint
order_weightallowed
optionalvalidate_constraint
branchnot_supported
directionnot_supported
hierarchicalnot_supported
on_deleteallowed
allow_overrideallowed
read_onlyallowed

Generic

NameStatus
namemigration_required
namespacemigration_required
descriptionallowed
labelallowed
branchnot_supported
default_filterallowed
human_friendly_idallowed
display_labelsallowed
include_in_menuallowed
menu_placementallowed
iconallowed
order_byallowed
uniqueness_constraintsvalidate_constraint
documentationallowed
hierarchicalvalidate_constraint
generate_profilevalidate_constraint