Expand description

This module wraps all functions related to operations that should be run once on the database, when the entire system starts.

Functions

Create an Administrator user (login “admin”) for a specific tenant, if it doesn’t exist already.
Create a database for a specific tenant, if it doesn’t exist. Panics if unable to create database.
Awaits for database availability on a spinlock.
Run pending database migrations for a specific tenant. Panics if unable to run any migrations, if they weren’t run already.