Skip to content

Database Setup

To prepare an empty PostgreSQL database for a Sirveo deployment, follow these steps.

  1. Create a login role:

    CREATE ROLE sirveo_app
    WITH PASSWORD 'superSecret' LOGIN;
  2. Create a new database, owned by the new role:

    CREATE DATABASE sirveo_db
    WITH OWNER sirveo_app;

When the server starts, database schema creation is performed automatically. When upgrading to a new release, database modifications - if required - are also applied automatically when the server is restarted.

The server’s database credentials should provide sufficient privileges for creating and modifying database objects. Otherwise, no special database configuration is needed.