IF NOT EXISTS (SELECT 1 FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.EST_PROD_MOTIVO_STS') AND NAME = 'FLAG_PERMITE_ENT_PROD')
BEGIN
	ALTER TABLE DBO.EST_PROD_MOTIVO_STS ADD FLAG_PERMITE_ENT_PROD INT NOT NULL DEFAULT 0;
END
