IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'FLAG_NAO_ENVIAR_PBM' AND OBJECT_ID = OBJECT_ID('EST_PROD_AGENDA_COMPRA'))
BEGIN
ALTER TABLE dbo.EST_PROD_AGENDA_COMPRA ADD
FLAG_NAO_ENVIAR_PBM tinyint NOT NULL CONSTRAINT DF_EST_PROD_AGENDA_COMPRA_FLAG_NAO_ENVIAR_PBM DEFAULT 0
END