From 25787828ec9955bbfe4127cb72a91a6d7386fd19 Mon Sep 17 00:00:00 2001 From: PizzaLovingNerd Date: Tue, 18 Aug 2026 17:45:10 -0700 Subject: [PATCH] Fix SQLite migration for additional account settings (#913) * Added needed account settings to the migration column and added more dependencies. * Export libpq when installing with homebrew. * Update migrate-sqlite-to-postgresql.mdx --- .../maintenance/scaling/migrate-sqlite-to-postgresql.mdx | 8 ++++++-- 1 file changed, 6 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 7b95c227..59f93c71 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,12 @@ 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 +# Export libpq to the PATH to allow using its command-line tools. +export PATH="$(brew --prefix libpq)/bin:$PATH" ``` ## Create the Migration File @@ -74,6 +76,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 ; ```