createSchema
Last updated: January 27, 2026
Creates a new schema in Snowflake. Schemas are logical groupings of database objects (tables, views, stages, etc.) and provide namespace isolation.
Note: Automatic rollback drops the schema.
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 catalog (database) where the schema will be created | No |
| String | Name of the schema to create | Yes |
| Boolean | Replace the schema if it exists using | No |
| Boolean | Alter the schema if it exists using | No |
| Boolean | Only create if the schema doesn't exist using | No |
| Boolean | Create a transient schema (no Fail-safe period) | No |
| Boolean | Create managed access schema (only owner can grant privileges) | No |
| Integer | Number of days to retain data for Time Travel | No |
| Integer | Maximum number of days to extend data retention period | No |
| String | Default collation for tables/views created in this schema | No |
| String | Fully-qualified name of classification profile | No |
| String | Controls visibility of objects in INFORMATION_SCHEMA views | No |
| String | Log level: | No |
| String | Trace event level: | No |
| String | Comment describing the schema | No |
| Map | Key-value pairs of tags to apply (tags must exist)** | No |
| Map | Contact purposes and names (valid: | No |
* replaceIfExists, alterIfExists, and ifNotExists are mutually exclusive.
** tags and contacts are not supported with alterIfExists (CREATE OR ALTER).