Se Agrego la excepción em caso de que la tabla no exista
parent
cc818d1dfd
commit
bc6660eb12
|
@ -1,12 +1,15 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
except_00957 exception;
|
||||
table_exists exception;
|
||||
|
||||
pragma exception_init (object_exists , -01430);
|
||||
pragma exception_init (except_00957 , -00957);
|
||||
pragma exception_init(table_exists, -942);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE CONFIG_PRODUCTO_PARADA RENAME COLUMN CONF_PRODUCTO_PARADA_ID TO CONFIGPRODUCTOPARADA_ID';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_00957 then null;
|
||||
when table_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue