Upgrading OpenEA Community¶
OpenEA uses Alembic migrations and is designed for in-place upgrades. Do not recreate the PostgreSQL database for a normal version upgrade.
General procedure¶
- Read the release notes for the target version.
- Back up PostgreSQL.
- Preserve the existing
.envfile and PostgreSQL volume. - Replace or update the application source.
- Rebuild and restart containers.
- Allow the web startup process to run
alembic upgrade headandseed-system. - Verify the reported Alembic head.
- Verify health endpoints, login, worker activity, and important repository views.
Typical Docker commands:
docker compose build --no-cache
docker compose up -d
docker compose exec web alembic current
Upgrade from 1.5.1 to 1.5.2¶
OpenEA Community 1.5.2 establishes the independent Community distribution baseline. It does not add a database migration.
Alembic remains at:
0015_phase15 (head)
Existing architecture objects, relationships, users, API tokens, findings, audit history, and configuration remain compatible.
The Python distribution name becomes openea-community, while Python imports and runtime commands continue to use the app package.
Never remove the database volume casually¶
This command destroys the PostgreSQL volume:
docker compose down -v
Use it only when you intentionally want a completely clean installation.