Skip to content

Update sqlite to postgres migration#771

Merged
bcmmbaga merged 2 commits into
mainfrom
update-sqlite-migration
May 29, 2026
Merged

Update sqlite to postgres migration#771
bcmmbaga merged 2 commits into
mainfrom
update-sqlite-migration

Conversation

@bcmmbaga
Copy link
Copy Markdown
Collaborator

@bcmmbaga bcmmbaga commented May 28, 2026

Summary by CodeRabbit

  • Documentation
    • Updated SQLite to PostgreSQL migration guide with SSL mode configuration requirements
    • Enhanced field type conversion rules for account and authentication settings during migration

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Warning

Review limit reached

@bcmmbaga, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e7673e4b-4707-4065-941e-4f66a1bc6174

📥 Commits

Reviewing files that changed from the base of the PR and between 2cba697 and 23d865d.

📒 Files selected for processing (1)
  • src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx
📝 Walkthrough

Walkthrough

This PR updates the PostgreSQL migration documentation by extending pgloader type conversion rules for both the main store and optional auth service migrations, and adding SSL configuration (sslmode=disable) to PostgreSQL connection examples in the setup guide.

Changes

PostgreSQL Migration Configuration

Layer / File(s) Summary
Main store migration configuration
src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx
The sqlite.load pgloader script CAST section is extended with boolean conversions for accounts.settings_* columns. The config.yaml Postgres store DSN examples are updated to include sslmode=disable in both the direct connection string and environment variable alternative.
Auth service migration configuration
src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx
The auth-sqlite.load pgloader CAST rules are expanded with a blobbytea conversion directive and additional boolean casts for auth-related fields.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

📖 A guide now stronger, clearer for the soul,
With booleans cast and SSL made whole,
From SQLite's home to Postgres so grand,
The migration path is carefully planned,
Through auth and store, both secure in the flow! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: updating migration instructions from SQLite to PostgreSQL in the documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-sqlite-migration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx`:
- Around line 150-163: The CAST block in the pgloader example (the CAST section
in auth-sqlite.load that lists type/column casts such as "type blob to bytea ...
using byte-vector-to-bytea" and "column user_identity.claims_email_verified to
boolean") contains a duplicate trailing semicolon; remove the extra standalone
";" so the block ends with a single semicolon to match valid pgloader syntax.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4d8af7ab-8a42-40f2-ae83-18133dc6aa03

📥 Commits

Reviewing files that changed from the base of the PR and between f022842 and 2cba697.

📒 Files selected for processing (1)
  • src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx

@bcmmbaga bcmmbaga merged commit 9e09fa6 into main May 29, 2026
3 checks passed
@bcmmbaga bcmmbaga deleted the update-sqlite-migration branch May 29, 2026 08:38
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