From 8438b688fbb02ed411daed333d2a3f4ce20fd0a3 Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Tue, 31 Jan 2017 17:41:30 +0000 Subject: [PATCH] bug #8360 - commit embarcada na trunk. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@65478 d1611594-4594-4d17-8e1d-87c2c4800839 --- .classpath | 10 +++---- ....eclipse.wst.common.project.facet.core.xml | 1 - .../migration/V20161209_1705__mantis8360.sql | 1 + .../migration/V20161219_1645__mantis8360.sql | 1 + .../migration/V20170119_1058__mantis8360.sql | 15 +++++++++++ .../migration/V20170120_1031__mantis8360.sql | 16 ++++++++++++ .../migration/V20170120_1136__mantis8360.sql | 26 +++++++++++++++++++ 7 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 src/db/migration/V20161209_1705__mantis8360.sql create mode 100644 src/db/migration/V20161219_1645__mantis8360.sql create mode 100644 src/db/migration/V20170119_1058__mantis8360.sql create mode 100644 src/db/migration/V20170120_1031__mantis8360.sql create mode 100644 src/db/migration/V20170120_1136__mantis8360.sql diff --git a/.classpath b/.classpath index 4e149f946..69f8d7888 100644 --- a/.classpath +++ b/.classpath @@ -6,16 +6,16 @@ - - - - - + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml index 8e77f872f..7ba6051d7 100644 --- a/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,6 +1,5 @@ - diff --git a/src/db/migration/V20161209_1705__mantis8360.sql b/src/db/migration/V20161209_1705__mantis8360.sql new file mode 100644 index 000000000..df794930b --- /dev/null +++ b/src/db/migration/V20161209_1705__mantis8360.sql @@ -0,0 +1 @@ +alter table EMBARCADA_SINCRONISMO add NUMDIV NUMBER(11); diff --git a/src/db/migration/V20161219_1645__mantis8360.sql b/src/db/migration/V20161219_1645__mantis8360.sql new file mode 100644 index 000000000..23f0eb634 --- /dev/null +++ b/src/db/migration/V20161219_1645__mantis8360.sql @@ -0,0 +1 @@ +alter table VENDA_EMBARCADA add NUMDIV VARCHAR2(11); diff --git a/src/db/migration/V20170119_1058__mantis8360.sql b/src/db/migration/V20170119_1058__mantis8360.sql new file mode 100644 index 000000000..906c1c245 --- /dev/null +++ b/src/db/migration/V20170119_1058__mantis8360.sql @@ -0,0 +1,15 @@ +CREATE TABLE + EMBARCADA_LIMITES + ( + + EMBARCADA_LIMITES_ID NUMBER(15) NOT NULL, + LIMITE_BILHETE NUMBER(15) NOT NULL, + LIMITE_DIV NUMBER(15) NOT NULL, + LIMITE_DIAS NUMBER(15) NOT NULL, + AVISO_BILHETE NUMBER(15) NOT NULL, + AVISO_DIV NUMBER(15) NOT NULL, + AVISO_DIAS NUMBER(15) NOT NULL + ); + +CREATE SEQUENCE EMBARCADA_LIMITES_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 +MINVALUE 1 NOCYCLE CACHE 20 NOORDER; diff --git a/src/db/migration/V20170120_1031__mantis8360.sql b/src/db/migration/V20170120_1031__mantis8360.sql new file mode 100644 index 000000000..c1e36ba2c --- /dev/null +++ b/src/db/migration/V20170120_1031__mantis8360.sql @@ -0,0 +1,16 @@ + + declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into EMBARCADA_LIMITES ( + EMBARCADA_LIMITES_ID , + LIMITE_BILHETE , + LIMITE_DIV , + LIMITE_DIAS , + AVISO_BILHETE , + AVISO_DIV , + AVISO_DIAS + ) values (1,2000,15,20,1000,10,10)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170120_1136__mantis8360.sql b/src/db/migration/V20170120_1136__mantis8360.sql new file mode 100644 index 000000000..e47bbf80f --- /dev/null +++ b/src/db/migration/V20170120_1136__mantis8360.sql @@ -0,0 +1,26 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into CONSTANTE ( + CONSTANTE_ID, + NOMBCONSTANTE, + DESCCONSTANTE, + INDTIPOCONSTANTE, + VALORCONSTANTE, + INDMANTENIMIENTOUSUARIO, + ACTIVO, + FECMODIF, + USUARIO_ID) +values ( + CONSTANTE_SEQ.nextval, + ''EMBARCADA_CHECKBOX_SEGUROOPCIONAL'', + ''EMBARCADA_CHECKBOX_SEGUROOPCIONAL'', + ''1'', + ''false'', + ''1'', + ''1'', + to_date(sysdate,''DD/MM/YYYY HH24:MI:SS''), + ''1'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file