IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'FLAG_PROT_CANCELADO' AND OBJECT_ID = OBJECT_ID('EST_NF_ENT_EST_PED_VD'))
BEGIN
	ALTER TABLE EST_NF_ENT_EST_PED_VD ADD FLAG_PROT_CANCELADO INT NOT NULL CONSTRAINT DF_EST_NF_ENT_EST_PED_VD_FLAG_PROT_CANCELADO DEFAULT 0
END
