In Erwin, pre-script and post-script can be customized. When will these custom scripts be triggered?
In addition to ensuring that the pre-and post-script option is selected in the right-click table option, the table-level script is triggered only when you create or discard a table, if only a field of the table is modified, the script will not be triggered.
-A small obstacle to self-generated DDL modification encountered during Data Model Modification
Two other points are found:
1. You can only use preview when using DDL scripts. If generate is used, DDL execution is directly completed in the database. do not generate a DDL statement during model modification.
2. after the model is modified, if you save it, you cannot generate the alter script DDL script. To obtain the DDL script, you must click "preview" to obtain the DDL script before saving it. In case of saving, you can only use the Compare menu to compare it with the original model, find out the difference, copy the left and right, and then click alter script to obtain the script.