-
Notifications
You must be signed in to change notification settings - Fork 162
Minor issue fixes #13627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor issue fixes #13627
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14665,6 +14665,7 @@ alter table symptoms add column if not exists symptomCurrentStatus varchar(255); | |
| alter table symptoms add column if not exists durationOfSymptoms integer; | ||
| alter table symptoms add column if not exists overnightStayRequired varchar(255); | ||
| alter table symptoms add column if not exists bloating varchar(255); | ||
| ALTER TABLE symptoms ALTER COLUMN weightlossamount TYPE float4 USING weightlossamount::float4; | ||
| alter table exposures add column if not exists travelAccommodation varchar(255); | ||
| alter table exposures add column if not exists travelAccommodationType varchar(255); | ||
| alter table exposures add column if not exists swimmingLocation varchar(255); | ||
|
|
@@ -14677,11 +14678,12 @@ alter table exposures add column if not exists rawfoodcontact varchar(255); | |
| alter table exposures add column if not exists rawfoodcontacttext varchar(255); | ||
| alter table exposures add column if not exists symptomaticindividualtext varchar(255); | ||
| ALTER TABLE hospitalization ADD COLUMN IF NOT EXISTS durationOfHospitalization integer; | ||
|
|
||
| alter table epidata add column if not exists modeOfTransmission varchar(255); | ||
| alter table epidata add column if not exists modeOfTransmissionType varchar(255); | ||
| alter table epidata add column if not exists infectionSource varchar(255); | ||
| alter table epidata add column if not exists infectionSourcetext varchar(255); | ||
| alter table epidata add column if not exists importedCase varchar(255); | ||
| alter table epidata add column if not exists country_id bigint; | ||
|
Comment on lines
+14685
to
+14686
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don’t re-create an existing FK with
🤖 Prompt for AI Agents |
||
| ALTER TABLE person ADD COLUMN IF NOT EXISTS workplace varchar(255); | ||
| ALTER TABLE person ADD COLUMN IF NOT EXISTS workplacetext varchar(255); | ||
|
|
||
|
|
@@ -14693,6 +14695,7 @@ alter table symptoms_history add column if not exists symptomCurrentStatus varch | |
| alter table symptoms_history add column if not exists durationOfSymptoms integer; | ||
| alter table symptoms_history add column if not exists overnightStayRequired varchar(255); | ||
| alter table symptoms_history add column if not exists bloating varchar(255); | ||
| ALTER TABLE symptoms_history ALTER COLUMN weightlossamount TYPE float4 USING weightlossamount::float4; | ||
| alter table exposures_history add column if not exists travelAccommodation varchar(255); | ||
| alter table exposures_history add column if not exists travelAccommodationType varchar(255); | ||
| alter table exposures_history add column if not exists swimmingLocation varchar(255); | ||
|
|
@@ -14705,6 +14708,8 @@ alter table epidata_history add column if not exists modeOfTransmission varchar( | |
| alter table epidata_history add column if not exists modeOfTransmissionType varchar(255); | ||
| alter table epidata_history add column if not exists infectionSource varchar(255); | ||
| alter table epidata_history add column if not exists infectionSourcetext varchar(255); | ||
| alter table epidata_history add column if not exists importedCase varchar(255); | ||
| alter table epidata_history add column if not exists country_id bigint; | ||
| alter table exposures_history add column if not exists rawfoodcontact varchar(255); | ||
| alter table exposures_history add column if not exists rawfoodcontacttext varchar(255); | ||
| alter table exposures_history add column if not exists symptomaticindividualtext varchar(255); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify the removal of GIARDIASIS from caseImportedStatus.
The
@Diseasesannotation oncaseImportedStatusnow only includesDisease.MEASLES, withDisease.GIARDIASISremoved. This change aligns with the introduction of the newimportedCasefield for GIARDIASIS (lines 81-83). However, if existing GIARDIASIS cases previously usedcaseImportedStatus, this could be a breaking change.Please confirm:
caseImportedStatus?importedCasefield?You can verify existing usage with:
🏁 Script executed:
Length of output: 96
Remove stale GIARDIASIS entry and add migration
@Diseasesstill includesDisease.GIARDIASIS—remove it to match intended MEASLES-only usage.importedCasefield—add a DB migration script to preserve and transfer that data.🤖 Prompt for AI Agents