Working with the PegaRULES database — Schema changes |
The schema for the PegaRULES database can grow and evolve through a variety of tools and automatic changes. This topic identifies the types and sources of these changes.
Automatic changes are possible only if the primary account or the administrative account on the Database data instance that defines the connection to the PegaRULES database has the ALTER TABLE and CREATE TABLE capabilities. Often these capabilities are present on development systems but not present on production systems (as determined by the production level value in the System data instance.) In addition, certain capabilities require that the user hold specific privileges, and that the value of the Dynamic System Setting named database/AutoDBSchemaChanges be set to true.
When you first install a V6.3 PRPC system, it contain about 106 database tables. This help system summarizes the purpose and contents of each table.
Database table instances define a mapping — typically many to one — between concrete classes and database tables.
To support reporting or other operations, it is often useful to "expose" a property value to make it a separate database column. These tools can add a column, or update a column, in an existing database table:
Optionally, as you create a top-level Single Value
property, you can update the associated database table to make this property exposed, by adding a database column, on the New dialog. See Property form — Completing the New/Save As dialog.
In a development system, PRPC automatically creates a new table each time you create a new concrete class in these situations. (These tables are created when you create a concrete class indirectly, by using the Application Accelerator, the Connector and Metadata Accelerator, and similar tools. You must hold the SchemaTableCreation privilege. In addition, the Dynamic System Setting data instance database/AutoDBSchemaChanges must be set to true.
pc_work
table. The new table is named pc_ZZZZZ_work, where ZZZZZ is the class group name in all lowercase.Changes introduced by the Import wizard
Using the Import landing page tab, you can import and apply schema changes from a ZIP archive that contains such changes. This approach keeps the schemas of two systems in synch.
Viewing a log of schema changes
Use the Schema Change Tracking tab on the System-Database landing page to review the cumulative schema changes in your system.
To access this tab, select > System > Database > Schema Change Tracking. See System category — System-Database page.
Column Populator utility, exposed property, Storage Stream | |
How to expose a property as a database column
About Database Table data instances |
|
Atlas — Initial database tables |