Move from SQLite to Postgres #
SQLite is a good default for a single small qpayd node. Move to Postgres when you need managed backups, shared operational access, or a database independent from the payment VM.
qpayd supports:
[database]
url = "sqlite://qpayd.db"
and:
[database]
url = "postgres://postgres:postgres@localhost:5432/qpayd"
Postgres tables are prefixed with qpayd_ so qpayd can use a shared database
without claiming generic table names.
Migration checklist #
- Stop invoice creation.
- Back up the SQLite database.
- Provision Postgres.
- Set the Postgres database URL.
- Run
qpayd --config qpayd.toml migrate. - Start qpayd and create a small test invoice.
- Verify invoice reads, webhooks, and address index continuity.
Schema migrations are sequential. Fresh installs run every migration in order; existing installs only run migrations that have not been recorded yet.