EXEC sp_rename 'AKUZ.T_COVID_REGISTRY_STAGE_PPD.hasnt_complication', 'hasnt_complication_old', 'COLUMN';

ALTER TABLE AKUZ.T_COVID_REGISTRY_STAGE_PPD
ADD hasnt_complication int NULL;
GO

UPDATE AKUZ.T_COVID_REGISTRY_STAGE_PPD
SET hasnt_complication = hasnt_complication_old;

ALTER TABLE AKUZ.T_COVID_REGISTRY_STAGE_PPD
DROP COLUMN hasnt_complication_old;

EXEC sp_rename 'AKUZ.T_COVID_REGISTRY_STAGE_FPD.hasnt_complication', 'hasnt_complication_old', 'COLUMN';

ALTER TABLE AKUZ.T_COVID_REGISTRY_STAGE_FPD
ADD hasnt_complication int NULL;
GO

UPDATE AKUZ.T_COVID_REGISTRY_STAGE_FPD
SET hasnt_complication = hasnt_complication_old;

ALTER TABLE AKUZ.T_COVID_REGISTRY_STAGE_FPD
DROP COLUMN hasnt_complication_old;

EXEC sp_rename 'AKUZ.T_COVID_REGISTRY_FINAL_CLINICAL_DIAG.hasnt_complication', 'hasnt_complication_old', 'COLUMN';

ALTER TABLE AKUZ.T_COVID_REGISTRY_FINAL_CLINICAL_DIAG
ADD hasnt_complication int NULL;
GO

UPDATE AKUZ.T_COVID_REGISTRY_FINAL_CLINICAL_DIAG
SET hasnt_complication = hasnt_complication_old;

ALTER TABLE AKUZ.T_COVID_REGISTRY_FINAL_CLINICAL_DIAG
DROP COLUMN hasnt_complication_old;