-- Tables

-- Alters

ALTER TABLE AKUZ.T_CHANGE_DIAGNOSIS_IN_POLYCLINIC_EVENT ALTER COLUMN "diagnosis" SET DATA TYPE varchar(4096);

UPDATE AKUZ.T_CHANGE_DIAGNOSIS_IN_POLYCLINIC_EVENT SET "diagnosis" = '' WHERE "diagnosis" IS NULL;

ALTER TABLE AKUZ.T_CHANGE_DIAGNOSIS_IN_POLYCLINIC_EVENT ALTER COLUMN "diagnosis" SET NOT NULL;

