
/*------ ATD 277344 ------*/
/* PA 277344 (Casa Mattos): Altera o campo "NroNotaF" da tabela CadItemAtF, de Char(8) para Char(13) */
IF EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'NRONOTAF' and
           syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='CadItemAtF'))
   ALTER TABLE CadItemAtF ALTER COLUMN NRONOTAF CHAR(13)
GO