- Reference
- Version · 6.0
- Change Automation Reference
alterSequenceComment
Last updated: September 29, 2026
Sets or removes the comment on an existing sequence in Snowflake.
Note: This change type does not support automatic rollback.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the catalog (database) containing the sequence | No |
| String | Name of the schema containing the sequence | No |
| String | Name of the sequence to alter | Yes |
| Boolean | Don't error if the sequence doesn't exist | No |
| String | New comment text to set* | No |
| Boolean | Remove the existing comment* | No |
* Exactly one of newComment or unsetComment must be specified.
Snapshot and diff support
As of Liquibase Secure 6.0, snapshot records the comment on a Snowflake sequence and diff reports a difference when two sequences have different comments. diff-changelog generates a pro-snowflake:alterSequenceComment changeset to correct the difference.
When the sequence in the reference database has no comment, the generated changeset sets unsetComment to true rather than setting an empty comment, because Snowflake treats the two differently.
Note: Snapshots taken before Liquibase Secure 6.0 do not record sequence comments. Regenerate any stored snapshots of Snowflake databases that contain sequences.