Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Enable DB migrations by swapping to Postgres in dev - #33

Merged
initstring merged 8 commits into
mainfrom
codex/plan-for-schema-consistency-and-migrations
Sep 25, 2025
Merged

initstring merged 8 commits into
mainfrom
codex/plan-for-schema-consistency-and-migrations

Conversation

@initstring

@initstring initstring commented Sep 24, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • Switch Prisma and all runtime scripts to PostgreSQL (SQLite removed).
  • Generate an initial 000_init migration and add migration_lock.toml.
  • Add docker-compose.dev.yml for local Postgres, plus npm helpers (db:up, db:down, db:migrate, db:deploy, db:reset, seed:demo).
  • Update env templates and validation (DATABASE_URL, TEST_DATABASE_URL) and ensure Vitest resets a dedicated rtap_test database.
  • Align docs/AGENTS/plan with the new workflow; remove stale SQLite guidance.
  • Refresh dependencies (Next 15.5, Prisma 6.16, TanStack 5.90, tRPC 11.6, ESLint 9.36, etc.).
  • CI / Ops

GitHub Actions now provisions Postgres, waits with pg_isready, prepares a one-off shadow DB, applies migrations, checks for schema drift, and runs tests against rtap_ci_test.
Testing

npm run check
npm run test

@initstring

Copy link
Copy Markdown
Owner Author

@codex please review.

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

Copy link
Copy Markdown

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.

ℹ️ 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

Comment thread src/test/global-setup.ts Outdated
@initstring

Copy link
Copy Markdown
Owner Author

@codex you last issue is fixed, please verify with a review.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ 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

@initstring initstring changed the title Add database consistency rollout plan Enable DB migrations by swapping to Postgres in dev Sep 25, 2025
@initstring
initstring merged commit 2a89c2e into main Sep 25, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant