Pre-deployment

Overview

Pre-deployment scripts are custom SQL steps that run before AnalyticsCreator applies deployment changes to the target database. Use this script type for preparation that must happen immediately before deployment, such as validating prerequisites, applying environment-specific setup, or preparing supporting objects used by the deployment process.

Function

Use Pre-deployment when the SQL logic belongs in the deployment preparation phase rather than during database creation, after deployment, or as part of a workflow package. Scripts in this group are ordered by sequence number and then by script name in the navigation tree.

Pre-deployment uses the shared Define script page. The editor stores the script type, script name, description, sequence number, inactive flag, and SQL text. The package assignment grid is hidden for this type because package assignment is only shown for workflow script types.

When a deployment package is generated, active Pre-deployment scripts are included in the preparation step so they can run before the deployment changes are applied.

Access

The Scripts branch contains a Pre-deployment scripts node. Its context menu provides List pre-deployment scripts and Add pre-deployment script, both preselecting the Pre-deployment script type.

How to access

Navigation tree

Scripts -> Pre-deployment scripts -> List pre-deployment scripts, or Add pre-deployment script

Toolbar

Scripts

Diagram

Not direct. Use the Scripts list or navigation tree.

Visual element

Define script -> Script type -> Pre-deployment

Screen overview

IDPropertyDescription
1Script typeSelects the SQL Script type. For this page the selected type is Pre-deployment.
2NameDefines the script name. Save validation requires a non-empty value.
3DescriptionStores the optional script description shown in the script list.
4Sequence numberControls ordering inside the Pre-deployment script group. A non-numeric value is rejected during validation.
5InactiveStores whether the script is disabled without deleting it.
6OriginalShows the editable SQL script text.
7ParsedShows the macro-parsed preview of the SQL script in a read-only field.
8ScriptContains the SQL body. Save validation requires a non-empty script.
9CancelReturns to the previous page without saving changes.
10SaveValidates the script fields, stores the SQL Script, and refreshes the navigation tree.

List behavior

List pre-deployment scripts opens the script list already scoped to Pre-deployment scripts. The list can filter by script name, shows Name, Type, and Description, and opens the Define script page when a row is double-clicked.

The New button opens a new script with Pre-deployment already selected. Delete removes the selected script after confirmation. The up and down buttons swap sequence numbers only between scripts of the same script type.

Related topics