Allow 'alter column' operations to set the comment on a column:
{
"name": "02_change_comment",
"operations": [
{
"alter_column": {
"table": "events",
"column": "name",
"comment": "The full name of the event"
}
}
]
}
This is a versioned migration so the column to which the comment is applied is duplicated and backfilled according to the up and down SQL supplied with the 'alter column' operation. up and down default to a simple copy of the field between new and old columns.
The intention is that this can be combined with a 'change type' sub-operation if there is some column metadata that should be updated as part of the type change:
Allow 'alter column' operations to set the comment on a column:
This is a versioned migration so the column to which the comment is applied is duplicated and backfilled according to the
up
anddown
SQL supplied with the 'alter column' operation.up
anddown
default to a simple copy of the field between new and old columns.The intention is that this can be combined with a 'change type' sub-operation if there is some column metadata that should be updated as part of the type change:
Fixes #328