/
How To: Package Without Deploying to the REF Database
How To: Package Without Deploying to the REF Database
If you need to package a new change without deploying it to the REF database, you can use label logic to identify the changesets not to deploy. The REF database is typically a schema-only database (no or limited data) and used in the first deployment step in a pipeline. The first label in the REF dbdef will be used as a label for the pipeline.
- Set a label expression for the dbdef for the REF database. The expression should exclude changes marked with a particular label. For example, the label expression could include a !skip_ref element to mean that when a skip_ref label is found for a changeset, do not deploy the changeset. If the label used to identify the pipeline is "main", then the resulting label expression on the dbdef would be: (main AND !skip_ref)
- Set a label in a metadata.properties file. The label is applied to all changesets generated from scripts in the directory where the metadata.properties file is found. For example, set labels=skip_ref.
- Put a copy of the metadata.properties file in each of the desired script directories used by the project for packaging (for example, ddl, ddl_direct, sql, sql_direct).
- Run Deployment Packager.
, multiple selections available,
Related content
How Liquibase Enterprise Works
How Liquibase Enterprise Works
Read with this
Configure Deployment Packager to Use an Oracle Ephemeral Database
Configure Deployment Packager to Use an Oracle Ephemeral Database
More like this
Q & A
Read with this
How To: Deploy Changes to a Specific Environment
How To: Deploy Changes to a Specific Environment
More like this
Liquibase Enterprise v7.15 - Release Notes
Liquibase Enterprise v7.15 - Release Notes
Read with this
Using the metadata.properties file
Using the metadata.properties file
More like this
Copyright © Datical 2012-2020 - Proprietary and Confidential