Skip to content

fix(db): move pgroll migrations to predeploy flow#175

Merged
o-az merged 1 commit intomainfrom
o-az/pgroll-migrations
Apr 27, 2026
Merged

fix(db): move pgroll migrations to predeploy flow#175
o-az merged 1 commit intomainfrom
o-az/pgroll-migrations

Conversation

@o-az
Copy link
Copy Markdown
Member

@o-az o-az commented Apr 22, 2026

Moves postgres schema changes out of indexer startup and into a predeploy migration flow so migration failures block deploys without breaking the currently running indexer. Also:

  • introduces a pgroll-based migration workflow,
  • adds db/pgroll which becomes the canonical migration directory,
  • adds the baseline/bootstrap path for first-time pgroll adoption,
  • and moves risky postgres index creation out of app startup.

The is_virtual_forward rollout is the first migration using this flow.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30da772191

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/db/schema.rs Outdated
Comment thread db/pgroll/20260417_add_logs_virtual_forward_indexes.yaml Outdated
@o-az o-az force-pushed the o-az/pgroll-migrations branch from 30b07ae to 3de1fed Compare April 27, 2026 20:51
@o-az o-az force-pushed the o-az/pgroll-migrations branch from d787b15 to d2b7318 Compare April 27, 2026 20:59
@o-az o-az merged commit b584e1c into main Apr 27, 2026
3 checks passed
@o-az o-az deleted the o-az/pgroll-migrations branch April 27, 2026 21:01
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.

2 participants