diff --git a/dmp-db-scema/updates/00.01.037_updateNotification_NTFInAppNotification.sql b/dmp-db-scema/updates/00.01.037_updateNotification_NTFInAppNotification.sql index 755fea4c8..cc38b1cc6 100644 --- a/dmp-db-scema/updates/00.01.037_updateNotification_NTFInAppNotification.sql +++ b/dmp-db-scema/updates/00.01.037_updateNotification_NTFInAppNotification.sql @@ -9,6 +9,22 @@ BEGIN ALTER TABLE public."Notification" ADD COLUMN is_active smallint NOT NULL; + ALTER TABLE public."Notification" DROP COLUMN contact_type_hint; + + ALTER TABLE public."Notification" DROP COLUMN notify_state; + + ALTER TABLE public."Notification" DROP COLUMN notified_with; + + ALTER TABLE public."Notification" + ADD COLUMN contact_type_hint smallint; + + ALTER TABLE public."Notification" + ADD COLUMN notify_state smallint; + + ALTER TABLE public."Notification" + ADD COLUMN notified_with smallint; + + ALTER TABLE public."NTFInAppNotification" DROP COLUMN is_active; ALTER TABLE public."NTFInAppNotification"