Skip to content

fix: consolidate HertzBeat 2.0.0 schema migrations at version 200 - #4598

Open
zqr10159 wants to merge 3 commits into
apache:masterfrom
zqr10159:fix/2.0.0-schema-version
Open

zqr10159 wants to merge 3 commits into
apache:masterfrom
zqr10159:fix/2.0.0-schema-version

Conversation

@zqr10159

@zqr10159 zqr10159 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

What changed?

  • Consolidate unreleased 2.0.0 metadata changes, including the AI Workbench schema, into B200 for fresh installs and V200 for upgrades, for H2, MySQL and PostgreSQL. Reserve 201 for 2.0.1.
  • Point the installer and its baseline checks to B200; refresh the H2 wrapper digest. No changes to the migration scripts published in v1.9.1.
  • Move the upgrade proof off the unreleased B200-to-V201 path to a fixture migrated up to V190, and keep fresh B200 coverage separate.

Validation

  • Local Flyway/JDBC smoke tests on H2 2.3.232, MySQL 8.4 and PostgreSQL 17.6: fresh B200, one V190 → V200 upgrade, pre-existing data preserved, and a second migrate did nothing.
  • Project tests rerun directly via JUnit using the Maven-compiled classpath: AgentWorkflowSchemaUpgradeTest (4/4) and enabled TargetSchemaProvisionerDatabaseTest on MySQL/PostgreSQL (2/2) passed. The initial suite exposed the released H2 CLOB vs. fresh-install TEXT distinction; the updated proof checks CLOB explicitly on the upgrade path and still validates fresh H2 entity types.
  • git diff --check passed. Full GitHub CI and maintainer review are pending.
  • A local merge simulation with [alerter]feature: add Microsoft Teams as an alert notification channel #4347's ce45529 head found conflicts in the migration files. After this PR, rebase [alerter]feature: add Microsoft Teams as an alert notification channel #4347, keep its Teams DDL in B200/V200 only, and refresh the H2 digest.

AI-assisted contribution

  • AI assistance: Assisted with the migration consolidation, test updates, and validation.
  • Human validation: Maintainer review pending; no human review or CI outcome is claimed.
  • Risk notes: This intentionally consolidates unpublished 200/201 scripts. Databases that ran pre-release checksummed 200/201 scripts are not equivalent to released v1.9.1 databases; do not automatically repair their migration history. Use backups and validate the supported upgrade path first.

@zqr10159
zqr10159 marked this pull request as ready for review December 5, 2026 14:57
@zqr10159
zqr10159 requested review from Duansg and thefullgc December 5, 2026 16:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant