Close popover

Table of Contents

Configuring settings to automatically apply schema changes

You can configure settings to automatically deploy schema changes that are in an application package that is to be deployed on candidate systems. Configure these settings so that you do not have to apply schema changes if you do not have the privileges to deploy them.

Do the following steps:

  1. On the candidate system, in Pega Platform, set the AutoDBSchemaChanges dynamic system setting to true to enable schema changes at the system level.

    1. In Dev Studio, search for AutoDBSchemaChanges.

    2. In the dialog box that appears for the search results, click AutoDBSchemaChanges.

    3. On the Settings tab, in the Value field, enter true.

    4. Click Save.

  2. Add the SchemaImport privilege to your access role to enable schema changes at the user level. For more information, see Specifying privileges for an Access of Role to Object rule.

These settings are applied sequentially. If the AutoDBSchemaChanges dynamic system setting is set to false, you cannot deploy schema changes, even if you have the SchemaImport privilege.

For more information about the database/AutoDBSchemaChanges dynamic system setting, see Importing rules and data by using a direct connection to the database.

Schema changes are also attached to the deployment report for the pipeline.

  • Viewing deployment reports for a specific deployment

    Deployment reports provide information about a specific deployment. You can view information such as the number of tasks that you configured on a deployment that have been completed and when each task started and ended. If there were schema changes on the deployment, the report displays the schema changes.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.