Merge branch 'master' into AL4506Copia
commit
dcff5343a3
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>Flyway</artifactId>
|
<artifactId>Flyway</artifactId>
|
||||||
<version>1.88.0</version>
|
<version>1.91.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
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 funcion_sistema (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
||||||
|
VALUES
|
||||||
|
(funcion_sistema_seq.NEXTVAL, 1, ''ADM > CONFIGURAÇÃO COMERCIAL >> NEGOCIOS CORPORATIVOS >> MUDANÇA MASSIVA CONTRATO'',
|
||||||
|
''COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.MUDANCAMASSIVACONTRATO'', 1, SYSDATE, 1)';
|
||||||
|
|
||||||
|
exception
|
||||||
|
when dup_val_on_index then null;
|
||||||
|
when except_02291 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,12 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_00957 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_00957 , -00957);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE SOLICITUD_EXPRESO RENAME COLUMN ORMAPAGO_ID TO FORMAPAGO_ID';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_00957 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,31 @@
|
||||||
|
declare
|
||||||
|
table_exists exception;
|
||||||
|
pragma exception_init (table_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'CREATE TABLE COMPROVANTE_PASSAGEM (
|
||||||
|
COMPROVANTEPASSAGEM_ID NUMBER(7,0) NOT NULL ENABLE,
|
||||||
|
EMPRESA_ID NUMBER(7,0),
|
||||||
|
NUMOPERACION VARCHAR2(36 BYTE),
|
||||||
|
DOCUMENTO BLOB,
|
||||||
|
ACTIVO NUMBER(1,0),
|
||||||
|
FECMODIF DATE,
|
||||||
|
USUARIO_ID NUMBER(7,0),
|
||||||
|
PRIMARY KEY (COMPROVANTEPASSAGEM_ID),
|
||||||
|
FOREIGN KEY (EMPRESA_ID)
|
||||||
|
REFERENCES EMPRESA (EMPRESA_ID) ENABLE
|
||||||
|
) ';
|
||||||
|
|
||||||
|
exception when table_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'CREATE SEQUENCE COMPROVANTE_PASSAGEM_SEQ';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
|
@ -0,0 +1,8 @@
|
||||||
|
declare
|
||||||
|
column_exists exception;
|
||||||
|
pragma exception_init (column_exists , -01430);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD (IMPRESIONLAYOUTEMAILCONFIG_ID NUMBER(7) )';
|
||||||
|
exception when column_exists then null;
|
||||||
|
end;
|
||||||
|
/
|
|
@ -0,0 +1,12 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_00957 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_00957 , -00957);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE TRAYECTOS_EXPRESOS MODIFY DESCTRAYECTO VARCHAR2(100 BYTE)';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_00957 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,31 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_01451 exception;
|
||||||
|
except_01442 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_01451 , -01451);
|
||||||
|
pragma exception_init (except_01442 , -01442);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INDIMPRIMECUPOMVOUCHERCUSTOMIZADO NUMBER(1,0))';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_01451 then null;
|
||||||
|
when except_01442 then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_01451 exception;
|
||||||
|
except_01442 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_01451 , -01451);
|
||||||
|
pragma exception_init (except_01442 , -01442);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD CAMPOCUSTOMVOUCHER CLOB';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_01451 then null;
|
||||||
|
when except_01442 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,15 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_01451 exception;
|
||||||
|
except_01442 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_01451 , -01451);
|
||||||
|
pragma exception_init (except_01442 , -01442);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE PARADA ADD INDDISPONIBLETOTALBUS NUMBER(1, 0)';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_01451 then null;
|
||||||
|
when except_01442 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,12 @@
|
||||||
|
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 'UPDATE PARADA SET INDDISPONIBLETOTALBUS = 1';
|
||||||
|
exception
|
||||||
|
when dup_val_on_index then null;
|
||||||
|
when except_02291 then null;
|
||||||
|
end;
|
Loading…
Reference in New Issue