diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 09:51:28 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 09:51:28 +0200 |
| commit | b5349b52e757399d8ddb6325120a58e7d9e6e1f6 (patch) | |
| tree | fa6771abbcaf5c654968d5e8c5ff27c0ec292564 /src/commands.h | |
| parent | 67179a7ae9f6e399701434775a2ef345367b76bf (diff) | |
| download | bokf-b5349b52e757399d8ddb6325120a58e7d9e6e1f6.tar.gz bokf-b5349b52e757399d8ddb6325120a58e7d9e6e1f6.zip | |
db: snapshot the database before forward migrations
When db_open finds an older schema version, write a consistent
VACUUM INTO copy to <backup_dir>/pre-migration-v<old>-<UTC>.db
before the first migration statement. A taken name gets a numeric
suffix; if the snapshot fails, the open and the migration abort.
Diffstat (limited to 'src/commands.h')
0 files changed, 0 insertions, 0 deletions
