In this repository, you will find the migration scripts for ReportPortal. These scripts are utilized to update the database schema and generate an index template for OpenSearch.
If you want to use OpenSearch instead of Elasticsearch, you need to set the OS_HOST, OS_PORT and OS_PROTOCOL environment variables.
docker-compose run --rm migrations
docker-compose run --rm migrations down
docker-compose run --rm migrations down N
Variable | Description |
---|---|
POSTGRES_SSLMODE | SSL mode for Postgres connection |
POSTGRES_USER | Postgres user |
POSTGRES_PORT | Postgres port |
POSTGRES_PASSWORD | Postgres password |
POSTGRES_SERVER | Postgres server |
POSTGRES_DB | Postgres database |
OS_HOST | Opensearch host. You might keep this field empty if you use Elasticsearch |
OS_PORT | Opensearch port |
OS_PROTOCOL | Opensearch protocol. If security plugin is enabled, use https |
OS_USER | Opensearch user. If the security plugin is disabled, keep it empty |
OS_PASSWORD | Opensearch password. If the security plugin is disabled, keep it empty |