Automatic migrations

This project supports PostgreSQL database migrations automatically on program startup. These migrations are only in forward direction. There is no built-in support rolling back migrations.

Automatic database migrations are disabled by default. It is strongly recommended to enable this feature as it is intended to allow deployments to perform version upgrades seamlessly.

Database migrations are tested before release. Regardless it is recommended that production systems have a quick and robust database backup and restore procedure as well as a quick way to roll back the project's version if something does not behave as expected.

A PostgreSQL database is the default storage implementation for this project. If you are using a custom-written storage implementation, it is recommended to write a corresponding automatic database migration system.

Enabling automatic database migrations

In order to enable automatic database migrations, set the "autoMigrate" JSON attribute in the configuration to true. See the Configuration documentation for more details.