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
This commit is contained in:
PizzaLovingNerd
2026-08-18 17:45:10 -07:00
committed by GitHub
parent 75058391e3
commit 25787828ec

View File

@@ -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
;
```