Skip to main content

Data & Intelligence

PowerDesigner Tips – Deploying a Model

In its most basic form, deploying a data model means simply applying the model directly to a database via ODBC or a DDL script.  But that neglects much of that value in your model beyond the physical structure.

Here are the steps in our model deployment process.  We’ve scripted these in the build tool, but they could also be scripted directly in an extended model definition (XEM).

  1. Run a complete model check and stop if any model errors are encountered.
  2. Set the model version number, save the model, and commit it to source control.
  3. Generate the CREATE DATABASE statement into an independent file.
  4. Generate DDL for the structure of the database without foreign keys and without DROP statements.  This is used only for a clean build or for model comparison with a database management tool such as Redgate.
  5. Generate DDL for foreign keys (this allows us to drop FKs during utility/static data loads and then reapply them easily).
  6. Output images of the model diagrams (for publication to the wiki).
  7. Export model metadata in CSV format (for loading into the MDR and eventually publication to the wiki).  If you’re collecting/storing business rules in PD, this step is critical to the ETL process.
  8. Generate the ETL specifications report.
  9. Generate the changelog report based on a model compare against the previous model deployment.
  10. Generate incremental DDL (ALTER statements) for incremental upgrades of the database (actually, this happens independently based on the build system’s requests).
  11. Run any additional reports or list reports designated as part of the deployment.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Chris Grenz

More from this Author

Follow Us