migrations
Autogenerated migration for ehr_data v1 -> v2.
Generated from the v2 ORM via
python -m bitfount.cache.tools.gen_migration ehr_data 2.
The ORM (schema.py) is the source of truth; regenerate rather than hand-edit
(hand-edit only to add a data migration or fix an op autogen got wrong — e.g. a
rename, which autogen renders as drop+add).
Module
Functions
downgrade
def downgrade(op: Operations) ‑> None:Migrate ehr_data v2 -> v1 (see the module docstring).
upgrade
def upgrade(op: Operations) ‑> None:Migrate ehr_data v1 -> v2 (see the module docstring).