SYSTEM$DEMIGRATE_DBT_PROJECT

functionsupportedContainer services & dev tooling

docs.snowflake.com ↗

System functions

Reverts 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

NameRequiredDescription
object_namerequiredString that specifies the fully qualified name of the dbt project object to demigrate.
moderequiredOptional 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

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.