declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add  (INDICE_PEAJE2 NUMBER(7,3))';
  exception when column_exists then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2  = INDICE_PEAJE';
  exception when ja_existe  then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE  = null';
  exception when ja_existe  then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE';
  exception when column_exists then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add  (INDICE_PEAJE NUMBER(7,3))';
  exception when column_exists then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE  = INDICE_PEAJE2';
  exception when ja_existe  then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2  = null';
  exception when ja_existe  then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE2';
  exception when column_exists then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add  (INDICE_PEAJE2 NUMBER(7,3))';
  exception when column_exists then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2  = INDICEPEAJE';
  exception when ja_existe  then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE  = null';
  exception when ja_existe  then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICEPEAJE';
  exception when column_exists then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add  (INDICEPEAJE NUMBER(7,3))';
  exception when column_exists then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE  = INDICE_PEAJE2';
  exception when ja_existe  then null;
end;
/
declare
  ja_existe  exception;
  pragma exception_init (ja_existe  , -00001);
begin
  execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2  = null';
  exception when ja_existe  then null;
end;
/
declare 
  column_exists exception;
  pragma exception_init (column_exists , -01430);
begin 
  execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICE_PEAJE2';
  exception when column_exists then null;
end;
