From 537acab16d13130dcf23c828c0152ebf74f63dea Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Sat, 11 Feb 2023 21:04:28 +0900 Subject: [PATCH] Update db-migration.md --- docs/db-migration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/db-migration.md b/docs/db-migration.md index 79162816b..0fab0fb21 100644 --- a/docs/db-migration.md +++ b/docs/db-migration.md @@ -34,6 +34,8 @@ As a reminder there are three settings controlling the choice of backend of BTCP If you are currently using `mysql` or `sqlitefile`, and you wish to migrate to postgres, you simply need to add the command line argument `--postgres` or the environment variable `BTCPAY_POSTGRES` pointing to a fresh postgres database. +**Careful: Do not remove the former mysql or sqlitefile setting, you should have both: the postgres setting and the formet sqlite/mysql setting** + From `1.7.8`, BTCPay Server will interprete this and attempt to copy the data from mysql and sqlite into the new postgres database. Note that once the migration is complete, the old `mysql` and `sqlite` settings will simply be ignored.