
/*------ ATD 198946 ------*/
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'USUARIOLIBERACAOTROCA' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='CONTROLERMA'))
  ALTER TABLE CONTROLERMA ADD USUARIOLIBERACAOTROCA CHAR(3) 
  GO 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'USUARIOLIBERACAOENTRADA' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='CONTROLERMA'))
  ALTER TABLE CONTROLERMA ADD USUARIOLIBERACAOENTRADA CHAR(3) 
  GO 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'LIBTROCARMA' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='SENHVENCAD'))
  ALTER TABLE SENHVENCAD ADD LIBTROCARMA CHAR(1) 
  GO 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'LIBENTRADARMA' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='SENHVENCAD'))
  ALTER TABLE SENHVENCAD ADD LIBENTRADARMA CHAR(1) 
  GO
