From ff3615fdf0ba342c960cfbaaae20020fe92636b5 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 8 Oct 2026 11:35:07 +0200 Subject: [PATCH] feat(db): copy the database before a boot migrates it Migrations only go forward, and since #2610 an older image refuses a database a newer one migrated. Going back after a bad update therefore needs a copy from before it, and the only copies were backups the admin takes by hand or auto-backup, which is off by default. The first boot on 4.4 migrates every 4.3.x install through the legacy baseline and the new migrations without either. Before applying pending migrations to a file database that holds anything, the boot now writes a VACUUM INTO copy next to it, named pre-migrate--