Skip to content

Add database migration round-trip CI check#299

Closed
zhangsiqiang519 wants to merge 1 commit into
BountyOnChain:mainfrom
zhangsiqiang519:codex/stellar-bounty-migration-ci-182
Closed

Add database migration round-trip CI check#299
zhangsiqiang519 wants to merge 1 commit into
BountyOnChain:mainfrom
zhangsiqiang519:codex/stellar-bounty-migration-ci-182

Conversation

@zhangsiqiang519

Copy link
Copy Markdown

Summary

  • Add the existing AddDeletedAtToBounties migration to backend TypeORM migration lists.
  • Extend migration:check to run migrations up, compare schema metadata, revert them, then run up again.
  • Add a Postgres-backed migration-test CI job for PRs.

Closes #182

Verification

  • npm run lint --workspace=apps/backend
  • npm run build --workspace=apps/backend
  • npm run test --workspace=apps/backend -- --runInBand
  • git diff --check

Not run locally: npm run migration:check --workspace=apps/backend needs a PostgreSQL service; the new CI job provides it.

@GBOYEE

GBOYEE commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

I will take this issue. Strong backend background, clean PR coming shortly.

@GBOYEE

GBOYEE commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

I'm on it. Quick fix — devops scoped, clean PR incoming. Closes #299

Copy link
Copy Markdown
Contributor

Thanks for this. Issue #182 is assigned to @jaynomyaro, so I'm holding off. Worth coordinating in the issue thread before opening or landing.

Copy link
Copy Markdown
Contributor

Closing this — #182 is assigned to @jaynomyaro. Thanks for the contribution!

@Xuccessor Xuccessor closed this Jun 23, 2026
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.

[TESTING] No database migration testing in CI

3 participants