Skip to content

Commit

Permalink
updated schema sql to resolve bug of deleted column
Browse files Browse the repository at this point in the history
  • Loading branch information
Flava177 committed Jan 23, 2025
1 parent ec3a421 commit 3974af3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sormas-backend/src/main/resources/sql/sormas_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15208,15 +15208,15 @@ SET responsestatus =
END;
INSERT INTO schema_version(version_number, comment) VALUES (721, 'removed not started enum');

ALTER TABLE afpimmunization DROP COLUMN opvdoseatbirth;
ALTER TABLE afpimmunization DROP COLUMN seconddose;
ALTER TABLE afpimmunization DROP COLUMN fourthdose;
ALTER TABLE afpimmunization DROP COLUMN firstdose;
ALTER TABLE afpimmunization DROP COLUMN thirddose;
ALTER TABLE afpimmunization DROP COLUMN lastdose;
ALTER TABLE afpimmunization DROP COLUMN dateLastOpvDosesReceivedThroughSia;
ALTER TABLE afpimmunization DROP COLUMN dateLastIpvDosesReceivedThroughSia;
ALTER TABLE afpimmunization DROP COLUMN datelastipvreceivedthroughsia;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS opvdoseatbirth;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS seconddose;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS fourthdose;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS firstdose;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS thirddose;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS lastdose;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS dateLastOpvDosesReceivedThroughSia;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS dateLastIpvDosesReceivedThroughSia;
ALTER TABLE afpimmunization DROP COLUMN IF EXISTS datelastipvreceivedthroughsia;

ALTER TABLE afpimmunization ADD COLUMN opvdoseatbirth DATE;
ALTER TABLE afpimmunization ADD COLUMN seconddose DATE;
Expand Down

0 comments on commit 3974af3

Please sign in to comment.