Repository navigation
Promote edge to stable: migration runner (adds the job-system tables) - #2998
Merged
Merged
Conversation
… pending migrations (#2997) * migrations: one runner the deploy calls; the server refuses to start with pending migrations A small Rust runner (queue-rs/polis-migrate) applies pending numbered migrations in order, each atomically, recording them in one public.migrations table (the 2021 runner's idea). A one-time reconcile adopts migrations already present on an existing database after checking the catalog. The server checks at startup and refuses to run while any migration is pending. Proven on local Postgres: fresh; production-shaped through 000022 (adopt, then apply 19/23/24); re-run; failing migration; two runners at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s * migration runner: CI and test stacks run the runner before the server starts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s * migration runner: adopt production's schema, deprecate 4/5/7, release only 19/23/24 Records production's existing schema as the legacy contract (named variants kept as they are), treats the old cleanup migrations 4, 5 and 7 as already applied, and limits the forward path to the job-system tables (19, 23, 24). Adds the migration-to-release table and upgrade notes for every deployment. No numbered SQL file changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s * migration runner tests: wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s * migration runner: CI derives expected outcome from the release selection; one shared check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
Delphi Coverage Report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes edge to stable. Edge was identical to stable before #2997, so this ships only the migration runner.
Observable changes:
Production read-only first-deploy report: 20 adopt, 3 apply, 4 outside the release, 0 blocked.
Rollback: redeploy 082624d.
🤖 Generated with Claude Code
https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s