mirror of
https://github.com/netbirdio/docs.git
synced 2026-09-30 10:49:04 +02:00
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:
@@ -44,10 +44,12 @@ The migration uses [pgloader](https://github.com/dimitri/pgloader) to transfer d
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
sudo apt-get install pgloader
|
sudo apt-get install pgloader sqlite3 postgresql-client
|
||||||
|
|
||||||
# macOS
|
# 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
|
## Create the Migration File
|
||||||
@@ -74,6 +76,8 @@ CAST
|
|||||||
column accounts.settings_lazy_connection_enabled to boolean,
|
column accounts.settings_lazy_connection_enabled to boolean,
|
||||||
column accounts.settings_peer_expose_enabled to boolean,
|
column accounts.settings_peer_expose_enabled to boolean,
|
||||||
column accounts.settings_auto_update_always 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
|
column accounts.settings_local_mfa_enabled to boolean
|
||||||
;
|
;
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user