-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #898 from Health-Informatics-UoN/feat/696/change-DB
Update database to support Splitting Status field of a ScanReport
- Loading branch information
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
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,32 @@ | ||
[ | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 1, | ||
"fields": { "value": "PENDING", "display_name": "Pending Mapping" } | ||
}, | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 2, | ||
"fields": { "value": "MAPPING_25PERCENT", "display_name": "Mapping 25%" } | ||
}, | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 3, | ||
"fields": { "value": "MAPPING_50PERCENT", "display_name": "Mapping 50%" } | ||
}, | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 4, | ||
"fields": { "value": "MAPPING_75PERCENT", "display_name": "Mapping 75%" } | ||
}, | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 5, | ||
"fields": { "value": "COMPLETE", "display_name": "Mapping Complete" } | ||
}, | ||
{ | ||
"model": "mapping.mappingstatus", | ||
"pk": 6, | ||
"fields": { "value": "BLOCKED", "display_name": "Blocked" } | ||
} | ||
] |
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,17 @@ | ||
[ | ||
{ | ||
"model": "mapping.uploadstatus", | ||
"pk": 1, | ||
"fields": { "value": "IN_PROGRESS", "display_name": "Upload in Progress" } | ||
}, | ||
{ | ||
"model": "mapping.uploadstatus", | ||
"pk": 2, | ||
"fields": { "value": "COMPLETE", "display_name": "Upload Complete" } | ||
}, | ||
{ | ||
"model": "mapping.uploadstatus", | ||
"pk": 3, | ||
"fields": { "value": "FAILED", "display_name": "Upload Failed" } | ||
} | ||
] |
45 changes: 45 additions & 0 deletions
45
app/shared/shared/mapping/migrations/0004_mappingstatus_uploadstatus.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,45 @@ | ||
# Generated by Django 4.2.13 on 2024-10-15 08:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mapping", "0003_handmade_20220428_1503"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="MappingStatus", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("value", models.CharField(max_length=64)), | ||
("display_name", models.CharField(max_length=64)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name="UploadStatus", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("value", models.CharField(max_length=64)), | ||
("display_name", models.CharField(max_length=64)), | ||
], | ||
), | ||
] |
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