2.4. Creating Database Tables

It is sufficient to click CUBA > Generate Database Scripts in the main menu to create the database tables. After that, Database Scripts page will open.

The incremental DB update scripts from its current state are displayed on the Updates tab:

db scripts

The generated scripts for initial DB creation are available on Init Tables, Init Constraints, and Init Data tabs.

db scripts init

Click Save and close button to save the generated scripts.

To run update scripts, select CUBA > Update database. You might need to stop the application server in order to do this.