mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 14:16:12 +00:00
The clinical category lived in a side table the app created at runtime, after migration 0004 had dropped it as orphaned. It is now the MedicationCategoryAssignment model. Migration 0368 creates the table IF NOT EXISTS with the runtime DDL, so an existing table converges with its rows untouched (verified with prisma migrate diff against a database holding the runtime table and against a fresh one). The helpers keep their names and run on the Prisma delegate; the runtime CREATE TABLE and the pre-transaction ensure call in the restore are gone. The backup plan judges the table as a schema model (backed up, two-ended, seeded in the round trip) instead of under RAW_SQL_TABLES, which is now empty; its guard proves its matcher on a fixture string instead.