Snowflake createSequence
Last updated: March 26, 2026
Creates a new sequence in Snowflake. Sequences generate unique numeric values and are commonly used for auto-incrementing primary keys.
Note: Automatic rollback drops the sequence.
Known limitations:
This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
The Liquibase createSequence change type is not compatible for Snowflake users in Liquibase Secure 5.1 using YAML or JSON change type formats. This does not affect XML change types at all. If you’re connecting to a Snowflake database, Liquibase automatically detects that you are using the Snowflake createSequence change type and breaks backwards compatibility with the Liquibase createSequence change type. We recommend upgrading to Liquibase Secure 5.1.1 to use createView with YAML and JSON change type formats successfully.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the catalog (database) where the sequence is created | No |
| String | Name of the schema where the sequence is created | No |
| String | Name of the sequence to create | Yes |
| Boolean | Replace the sequence if it exists using OR REPLACE* | No |
| Boolean | Only create if the sequence doesn't exist using IF NOT EXISTS* | No |
| Long | Initial value for the sequence | No |
| Long | Value to increment by for each sequence value | No |
| Boolean | Guarantee ordered sequence values (true for ORDER) | No |
| String | Comment describing the sequence | No |
* orReplace and ifNotExists are mutually exclusive.