swapSchema
Last updated: January 27, 2026
Swaps two Snowflake schemas, exchanging all their contents and metadata. Useful for blue-green deployments or atomically switching between schema versions.
Note: Automatic rollback swaps the schemas back.
Known limitation: This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the database containing the source schema | No |
| String | Name of the first schema to swap | Yes |
| String | Name of the database containing the target schema (cross-database) | No |
| String | Name of the second schema to swap | Yes |
| Boolean | Don't error if the source schema doesn't exist | No |
loading
loading
loading
loading