SYSTEM$DEMIGRATE_DBT_PROJECT
functionsupportedContainer services & dev toolingReverts a migrated dbt project object from the mutable live-version model to the previous versioned object model.
Syntax
supportedpartialnot supportednot scored
SYSTEM$DEMIGRATE_DBT_PROJECT ( '<object_name>' [ , '<mode>' ] )
Parameters
| Name | Required | Description |
|---|---|---|
object_name | required | String that specifies the fully qualified name of the dbt project object to demigrate. |
mode | required | Optional string that specifies how to handle the live version when reverting: COMMIT (default): Publishes the current live version as a new committed version, then reverts the object to the previous versioned model. ABORT: Discards the live version and reverts to the last committed version. If you omit this argument, the function uses COMMIT. |
Usage notes
- This function is available only if your account is opted in to the 2026_06 behavior change bundle or a Snowflake account representative has enabled the separate single live version feature. This function will no longer work after the 2026_06 behavior change bundle is fully enabled. For details, see dbt Projects on Snowflake: dbt project objects migrate to a single mutable live version.
Access control requirements
The role used to call this function must have the OWNERSHIP privilege on the dbt project object. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.