Skip to content

fix(db): version schema migrations - #167

Merged
KIDA-MNESIA merged 1 commit into
yetone:mainfrom
KIDA-MNESIA:codex/ar-h2-versioned-migrations
Sep 2, 2026
Merged

fix(db): version schema migrations#167
KIDA-MNESIA merged 1 commit into
yetone:mainfrom
KIDA-MNESIA:codex/ar-h2-versioned-migrations

Conversation

@KIDA-MNESIA

Copy link
Copy Markdown
Collaborator

Summary

  • fix AR-H2 by recording immutable ordered schema migrations with exact checksums and replacing startup DDL with a read-only supported-version gate
  • run one candidate-image migration Job before Deployment mutation, remove per-replica migration init containers, and leave the current ReplicaSet untouched on migration failure
  • promote only when required indexes are valid, ready, and live; document expand/contract ownership in ADR 0003

Tests

  • npm run lint -- --diagnostic-level=error
  • npm run typecheck
  • npm run server:typecheck
  • npm test (1064 passed, 4 platform-gated skips)
  • npm run test:integration (281 passed, 5 credential-gated skips)
  • focused migration/ownership tests (26 passed)
  • fresh PostgreSQL migration smoke (62 tables, exact v1 checksum, idempotent rerun)
  • npm run guard:big-brain
  • npm run guard:llm-tracked
  • npm run guard:engine-registry
  • npm run build
  • Deploy workflow YAML parse and local strategic-patch verification

@KIDA-MNESIA
KIDA-MNESIA marked this pull request as ready for review September 2, 2026 18:10
@KIDA-MNESIA
KIDA-MNESIA merged commit 269e182 into yetone:main Sep 2, 2026
7 checks passed
@KIDA-MNESIA
KIDA-MNESIA deleted the codex/ar-h2-versioned-migrations branch September 2, 2026 18:11
yetone pushed a commit that referenced this pull request Sep 3, 2026
Prefix electron:dev with `npm run migrate &&` to match dev:all after #167 (ADR 0003), and update README/CONTRIBUTING to say migrations are applied via `npm run migrate` rather than on boot.

Fixes #170
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