fix(backup): carry each medication's category through backup and restore

The clinical category a person picks for a medication lives in a side table
created at runtime, outside the schema. The backup builder and the restore
only walk schema models, so no backup ever carried it: after a restore every
medication read as "Other".

Both backup formats now carry the category inside its medication, and the
restore writes it back in the same transaction as the medication. A file
from before this change restores as before; a category this server does not
know reads as Other instead of refusing the file.

The backup plan gains a list for tables created with raw SQL, and a check
that every such table in the source either maps to a schema model or has a
verdict there, so the next one cannot drop out of backups unnoticed.
This commit is contained in:
Marc-André Bombeck committed 2026-09-27 14:17:42 +02:00
1 parent e94e9b94a8
commit 6f37cbdb23
10 files changed
+215 -5

No files matched your search

+3
View File
@@ -34173,6 +34173,9 @@ components:
type: boolean
trackIntake:
type: boolean
category:
type: string
maxLength: 64
deliveryForm:
type: string
enum: