rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

Missing migrations #1032

Closed mbarton closed 2 months ago

mbarton commented 2 months ago

Running development now gives a warning that migrations need to be generated:

django-1 | Your models in app(s): 'epilepsy12' have changes that are not yet reflected in a migration, and so won't be applied. django-1 | Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

Running docker compose exec django python manage.py makemigrations:

Migrations for 'epilepsy12': epilepsy12/migrations/0031_alter_historicalregistration_first_paediatric_assessment_date_and_more.py

  • Alter field first_paediatric_assessment_date on historicalregistration
  • Alter field paediatrician_with_expertise_in_epilepsies on kpi
  • Alter field school_individual_healthcare_plan on kpi
  • Alter field tertiary_input on kpi
  • Alter field first_paediatric_assessment_date on registration

Here are the associated PRs for each change:

As they are all labelling changes it should be straight forward to commit the generated migration file and have it automatically applied the next time each instance starts