Skip to content

AH subprocess Phase 3 DB: index worker journal pruning#157

Merged
MadMaxMangos merged 1 commit into
masterfrom
feature/ah-sp3-journal-prune-indexes
Jul 14, 2026
Merged

AH subprocess Phase 3 DB: index worker journal pruning#157
MadMaxMangos merged 1 commit into
masterfrom
feature/ah-sp3-journal-prune-indexes

Conversation

@MadMaxMangos

@MadMaxMangos MadMaxMangos commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Advance the character database from 22.5.2 to 22.5.3.
  • Replace the single-column journal state index with (state, created_time) and (state, resolved_time) indexes for bounded terminal retention.
  • Make each index transition conditional so the update can recover if MariaDB commits the DDL before the db_version row is inserted.

Coordination

This migration is required by mangoszero/server#444. Apply the database update before deploying or enabling the updated server and AH worker.

Validation

  • Applied successfully from a clean 22.5.2 schema on MariaDB 10.11.
  • Reapplied successfully from an interrupted state with the new indexes present but db_version still at 22.5.2.
  • Verified db_version is 22.5.3 and both composite indexes have the expected column order.
  • Passed the DB-backed AH worker journal selftest and the server database-version gate.

This change is Reviewable

@MadMaxMangos MadMaxMangos merged commit 6c7cf7f into master Jul 14, 2026
@MadMaxMangos MadMaxMangos deleted the feature/ah-sp3-journal-prune-indexes branch July 14, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant