Add a new column to a table in your RAPStore and RAPCache database
schemas if the standard schemas do not suit your needs, or to use custom messages.
Note: The RAPStore schema does not support encrypted columns.
-
Modify the RAPStore and RAPCache database schemas:
-
In PowerDesigner, modify both the RAPStore and RAPCache physical data models (PDMs) and generate new data definition language (DDL) scripts.
-
Run the scripts to update the database.
See Data Model and Queries > DDL Script Generation.
-
Update RDS message templates:
-
Locate an RDS message file connected to the table you are adding the column to, and add a field definition block to the file.
-
If you update message definitions in the RAP Messages model, export them to a message_name.xml template file.
-
Ensure that all publishers and subscribers are updated with the new RDS message templates by copying the templates into all subscribers.
-
Add a new call to the Publisher API:
-
Make a new Publisher API call to the appropriate pub_set<type>Field method, based on the datatype of the field.
-
For fields that can be null, test for null and call pub_setNullField.
-
To apply the changes, stop, shut down, and restart subscribers and publishers.