Merge pull request 'bug#al-3609' (!90) from AL3609 into master
Reviewed-on: utilidades/Flyway#90 Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br>master
commit
aad0762171
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>Flyway</artifactId>
|
||||
<version>1.24.0</version>
|
||||
<version>1.25.0</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE TABLE EMPRESA_PMARTESP_CONFIG
|
||||
(
|
||||
EMPRESAPMARTESPCONFIG_ID NUMBER(8, 0) NOT NULL
|
||||
, VALIDACAO_ATIVA NUMBER(1, 0)
|
||||
, EMPRESA_ID NUMBER(7, 0)
|
||||
, URL_API VARCHAR2(500)
|
||||
, API_KEY VARCHAR2(4000)
|
||||
, ORGAOCONCEDENTE_ID NUMBER(7, 0)
|
||||
, CATEGORIA_ID NUMBER(7, 0)
|
||||
, ACTIVO NUMBER(1, 0)
|
||||
, FECMODIF DATE
|
||||
, USUARIO_ID NUMBER(7, 0)
|
||||
) ';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE SEQUENCE "EMPRESA_PMARTESP_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
-- INSERT / UPDATE
|
||||
declare
|
||||
dup_val_on_index exception;
|
||||
except_02291 exception;
|
||||
|
||||
pragma exception_init (dup_val_on_index , -00001);
|
||||
pragma exception_init (except_02291 , -02291);
|
||||
begin
|
||||
execute immediate 'INSERT INTO TIPO_IDENTIFICACION values ( 27 , ''RE_PM'', 1 , CURRENT_DATE, 1)';
|
||||
exception
|
||||
when dup_val_on_index then null;
|
||||
when except_02291 then null;
|
||||
end;
|
Loading…
Reference in New Issue