You can use the Pre & Post Scripts dialog to add model-level and table-level prescripts and postscripts.
To define pre & post scripts
The Pre & Post Scripts dialog opens.
A model-level script is executed either before or after the schema generation script.
A table level script is included either before or after the CREATE TABLE statement.
Generates the script to the schema when you forward engineer. Clear this check box to not generate the script to the schema.
Includes the expanded code for the script before all other statements in the schema script (model-level script), or to display the script before the CREATE TABLE statement in the schema generation script (table-level script).
Includes the expanded code for the script after all other statements in the schema script (model-level script), or to display the script after the CREATE TABLE statement in the schema generation script (table-level script).
You can complete the fields on the Code, Expanded tabs and then optionally select the Comment or UDP tab to add a comment or user defined property.
Your changes are saved and the Pre & Post Scripts dialog closes.
Note: Click Cancel to close the dialog without saving your changes.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |