IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'HORA_GRAVACAO_SOFTWARE_BASICO' AND OBJECT_ID = OBJECT_ID('PDV_CX'))
BEGIN	
ALTER TABLE PDV_CX ADD HORA_GRAVACAO_SOFTWARE_BASICO DATETIME ; 
END

