Creating the database schema script

You can create the database schema script using the gen-create-schema Ant task.

To create the SQL script required to create or update the database schema, run the gen-create-schema Ant task with these parameters:

For example:

ant gen-create-schema -DextensionModel=my_model_file.brmx -DextensionData=my_data_file.brdx -DoutputFile=my_sql_file.sql

The task connects to the given data source from the application server. The task checks if this data source points to an existing Decision Center database. If a database does not exist, the task builds the SQL script to create a fresh database schema to store the model. If a database does exist, the task builds the SQL script required to update the existing database schema.