
IF NOT EXISTS (SELECT * 
			     FROM SYS.COLUMNS
				WHERE NAME = 'XPED_NOTA_FISCAL' 
				  AND OBJECT_ID = OBJECT_ID('DBO.TELE_ORC'))
BEGIN
	ALTER TABLE TELE_ORC ADD XPED_NOTA_FISCAL VARCHAR(50) COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS NULL
	ALTER TABLE TELE_ORC ADD CONSTRAINT DF_TELE_ORC_XPED_NOTA_FISCAL DEFAULT '' FOR XPED_NOTA_FISCAL
END  ;