From 86d457ee73a8d671a5e3115eb4269c2ed0dadcad Mon Sep 17 00:00:00 2001 From: PizzaLovingNerd Date: Tue, 11 Aug 2026 01:27:30 -0700 Subject: [PATCH 1/2] Added needed account settings to the migration column and added more dependencies. --- .../maintenance/scaling/migrate-sqlite-to-postgresql.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx b/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx index 7b95c227b..2d79460ff 100644 --- a/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx +++ b/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx @@ -44,10 +44,10 @@ The migration uses [pgloader](https://github.com/dimitri/pgloader) to transfer d ```bash # Debian/Ubuntu -sudo apt-get install pgloader +sudo apt-get install pgloader sqlite3 postgresql-client # macOS -brew install pgloader +brew install pgloader sqlite3 libpq ``` ## Create the Migration File @@ -74,6 +74,8 @@ CAST column accounts.settings_lazy_connection_enabled to boolean, column accounts.settings_peer_expose_enabled to boolean, column accounts.settings_auto_update_always to boolean, + column accounts.settings_metrics_push_enabled to boolean, + column accounts.settings_agent_network_only to boolean, column accounts.settings_local_mfa_enabled to boolean ; ``` From b7cbb2b2c0120c5ed8f939790bb91e5854d3ab24 Mon Sep 17 00:00:00 2001 From: PizzaLovingNerd Date: Tue, 11 Aug 2026 15:42:14 -0700 Subject: [PATCH 2/2] Export libpq when installing with homebrew. --- .../maintenance/scaling/migrate-sqlite-to-postgresql.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx b/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx index 2d79460ff..75dc44f8b 100644 --- a/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx +++ b/src/pages/selfhosted/maintenance/scaling/migrate-sqlite-to-postgresql.mdx @@ -48,6 +48,8 @@ sudo apt-get install pgloader sqlite3 postgresql-client # macOS brew install pgloader sqlite3 libpq +# Export libpq to the PATH to allow using it's command-line tools. +export PATH="$(brew --prefix libpq)/bin:$PATH" ``` ## Create the Migration File