This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New columns to track how location fields were populated, refs #650
- Loading branch information
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
vaccinate/core/migrations/0147_location_provenance_columns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Generated by Django 3.2.4 on 2021-06-16 02:56 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0146_remove_ct_from_source_locations_issue_655"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="location", | ||
name="appointments_walkins_last_updated_at", | ||
field=models.DateTimeField( | ||
blank=True, | ||
help_text="When accepts_walkins and accepts_appointments were last updated", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="location", | ||
name="appointments_walkins_provenance_report", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="The report that last populated accepts_walkins and accepts_appointments", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="core.report", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="location", | ||
name="appointments_walkins_provenance_source_location", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="The source location that last populated accepts_walkins and accepts_appointments", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="core.sourcelocation", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="location", | ||
name="vaccines_offered_last_updated_at", | ||
field=models.DateTimeField( | ||
blank=True, | ||
help_text="When vaccines_offered was last updated", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="location", | ||
name="vaccines_offered_provenance_report", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="The report that last populated vaccines_offered", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="core.report", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="location", | ||
name="vaccines_offered_provenance_source_location", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="The source location that last populated vaccines_offered", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="core.sourcelocation", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters