fixes bug#AL-3524
parent
3844ae200b
commit
8612a51679
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ;
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
declare
|
||||||
|
column_exists exception;
|
||||||
|
pragma exception_init (column_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ;
|
||||||
|
exception when column_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_00957 exception;
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_00957 , -00957);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE PUNTO_VENTA RENAME COLUMN INDTAXACONVENIENCIAORGAOCONCEDENTE TO INDTAXACONVORGAOCONCEDENTE';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_00957 then null;
|
||||||
|
end;
|
Loading…
Reference in New Issue