IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'macroProcedureId'
      AND Object_ID = Object_ID(N'pal_MedicalPatientProcedureBooking'))
BEGIN
    ALTER TABLE pal_MedicalPatientProcedureBooking
	ADD macroProcedureId INT; 
END