Werk #19911 · Jun 16, 26
metric-backend: Recover database schema after site restore
Previously, restoring a site from a backup left the metric backend's database without a usable schema.
As of now, the metric backend data is deliberately excluded from OMD backups. However, that means that the database schema needs to be applied after a restore.
This has been fixed. A new post-restore hook now runs the metric backend schema manager and brings the ClickHouse schema up to the latest revision of the restored version. A missing database is created from scratch, and an existing database is migrated to the latest revision. If the metric backend is not configured, the hook does nothing.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Metrics
- Versions:
- 3.0.0b1Not yet releasedUltimateUltimate + MTCloud
- 2.5.0p8UltimateUltimate + MTCloud