IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'NSU' AND OBJECT_ID = OBJECT_ID('TELE_ORC_PAG_CARTAO'))
BEGIN
     ALTER TABLE DBO.TELE_ORC_PAG_CARTAO ADD NSU VARCHAR(30) NULL  
     
     ALTER TABLE DBO.TELE_ORC_PAG_CARTAO ADD CONSTRAINT DF_TELE_ORC_PAG_CARTAO_NSU DEFAULT '' FOR NSU
END;


IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'BANDEIRA' AND OBJECT_ID = OBJECT_ID('TELE_ORC_PAG_CARTAO'))
BEGIN
     ALTER TABLE DBO.TELE_ORC_PAG_CARTAO ADD BANDEIRA VARCHAR(30) NULL
     
     ALTER TABLE DBO.TELE_ORC_PAG_CARTAO ADD CONSTRAINT DF_TELE_ORC_PAG_CARTAO_BANDEIRA DEFAULT '' FOR BANDEIRA
END