HeyForm: MongoDB 4.4 -> 7.0, back on the real data

4.4 is end-of-life. Moved by mongodump/mongorestore into a new volume
(heyform_database7); the 4.4 volume stays for rollback.

The restore also fixes a data mix-up. From Nov 2024 the compose file set
MONGO_URI='mongodb://mongo:27017/heyform' in list form, so the quotes
became part of the value and HeyForm used a database literally named
"heyform'". The v3 upgrade (a1a79af) dropped the quotes, which switched
HeyForm to the old "heyform" database from the first week of setup, so
the real Repairs and Volunteer forms (91 submissions) disappeared. The new
volume holds "heyform'" restored as "heyform". Tested first with v3 on a
throwaway Mongo 7.0: both forms load.

Backups: ~/backups/heyform-mongo4.4-20261109 on the server (dump of both
databases + tar of the 4.4 volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-09 16:18:33 -07:00
1 parent 7916b0d223
commit 558b6d1a43
2 files changed
+7 -5

No files matched your search

@@ -31,12 +31,14 @@ services:
- SMTP_SECURE=true
mongo:
# HeyForm's own compose files still use 4.4
image: percona/percona-server-mongodb:4.4
# 7.0 is the newest Mongo that HeyForm's driver (mongodb 5.9) supports.
# Moved from 4.4 by dump/restore into a new volume on 2026-11-09; the old
# 4.4 volume (heyform_database) is kept for rollback.
image: percona/percona-server-mongodb:7.0
restart: always
volumes:
# Persist MongoDB data
- database:/data/db
- database7:/data/db
redis:
# v3 needs Redis 8 commands (HGETDEL), so KeyDB no longer works
@@ -51,7 +53,7 @@ services:
volumes:
assets:
driver: local
database:
database7:
driver: local
redis:
driver: local