Atualização do log4j

master
Gleimar Botelho Baleeiro 2023-11-21 12:06:02 -03:00
commit ef7aacea26
4 changed files with 62 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.17.0</version>
<version>1.20.0</version>
<distributionManagement>
<repository>

View File

@ -0,0 +1,13 @@
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE EMPRESA ADD (LICENCA VARCHAR(500))';
exception
when object_exists then null;
when except_00957 then null;
end;
/

View File

@ -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;

View File

@ -0,0 +1,28 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE TABLE HEADER_ESQUEMA_CORRIDA
(
"HEADERESQUEMACORRIDA_ID" NUMBER(7,0) NOT NULL ENABLE,
"SEQUENCIA_HEADER" VARCHAR2(50 BYTE) )
';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "HEADER_ESQUEMA_CORRIDA_SEQ" MINVALUE 1 MAXVALUE 999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null;
end;
/
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'Insert into HEADER_ESQUEMA_CORRIDA (HEADERESQUEMACORRIDA_ID, SEQUENCIA_HEADER)
values (1,''1,2,3,4,5,6,7,8,9,10,11,12,13,14,15'')';
exception when dup_val_on_index then null;
end;