diff --git a/sormas-backend/src/main/resources/sql/sormas_schema.sql b/sormas-backend/src/main/resources/sql/sormas_schema.sql index beb12d1befa..16b2fab1dd0 100644 --- a/sormas-backend/src/main/resources/sql/sormas_schema.sql +++ b/sormas-backend/src/main/resources/sql/sormas_schema.sql @@ -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;