From 78ead91ce38dfdc76c67eb93de6adae722256c88 Mon Sep 17 00:00:00 2001 From: wilian Date: Thu, 3 Jan 2019 18:09:05 +0000 Subject: [PATCH] fixes bug#12840 dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@88488 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181211_1144__mantis12840.sql | 7 +++++++ src/db/migration/V20181228_0923__mantis12840.sql | 7 +++++++ src/db/migration/V20181228_1722__mantis12840.sql | 11 +++++++++++ src/db/migration/V20181228_1842__mantis12840.sql | 8 ++++++++ src/db/migration/V20190102_1134__mantis12840.sql | 13 +++++++++++++ .../migration/V20181211_1145__mantis12840.sql | 6 ++++++ .../migration/V20181228_0923__mantis12840.sql | 6 ++++++ .../migration/V20181228_1722__mantis12840.sql | 10 ++++++++++ .../migration/V20181228_1842__mantis12840.sql | 6 ++++++ .../migration/V20190102_1134__mantis12840.sql | 13 +++++++++++++ 10 files changed, 87 insertions(+) create mode 100644 src/db/migration/V20181211_1144__mantis12840.sql create mode 100644 src/db/migration/V20181228_0923__mantis12840.sql create mode 100644 src/db/migration/V20181228_1722__mantis12840.sql create mode 100644 src/db/migration/V20181228_1842__mantis12840.sql create mode 100644 src/db/migration/V20190102_1134__mantis12840.sql create mode 100644 src/db/postgresql/migration/V20181211_1145__mantis12840.sql create mode 100644 src/db/postgresql/migration/V20181228_0923__mantis12840.sql create mode 100644 src/db/postgresql/migration/V20181228_1722__mantis12840.sql create mode 100644 src/db/postgresql/migration/V20181228_1842__mantis12840.sql create mode 100644 src/db/postgresql/migration/V20190102_1134__mantis12840.sql diff --git a/src/db/migration/V20181211_1144__mantis12840.sql b/src/db/migration/V20181211_1144__mantis12840.sql new file mode 100644 index 000000000..7350293ac --- /dev/null +++ b/src/db/migration/V20181211_1144__mantis12840.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (PUNTOVENTA_ID NUMBER(7,0))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20181228_0923__mantis12840.sql b/src/db/migration/V20181228_0923__mantis12840.sql new file mode 100644 index 000000000..c775a0cd6 --- /dev/null +++ b/src/db/migration/V20181228_0923__mantis12840.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (STATUSENVIO VARCHAR(20))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20181228_1722__mantis12840.sql b/src/db/migration/V20181228_1722__mantis12840.sql new file mode 100644 index 000000000..f1a6345ea --- /dev/null +++ b/src/db/migration/V20181228_1722__mantis12840.sql @@ -0,0 +1,11 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (QTDE_PARCELAS NUMBER(3), + MESANO_TARJETA VARCHAR(4), + PRIMEIROS_SEIS_DIGITOS_TARJETA VARCHAR(6), + ULTIMOS_QUATRO_DIGITOS_TARJETA VARCHAR(4), + VALOR NUMBER(7,2))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20181228_1842__mantis12840.sql b/src/db/migration/V20181228_1842__mantis12840.sql new file mode 100644 index 000000000..8878387c0 --- /dev/null +++ b/src/db/migration/V20181228_1842__mantis12840.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (NSU VARCHAR(45), + NUMAUTORIZACION VARCHAR(45))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20190102_1134__mantis12840.sql b/src/db/migration/V20190102_1134__mantis12840.sql new file mode 100644 index 000000000..aa3092131 --- /dev/null +++ b/src/db/migration/V20190102_1134__mantis12840.sql @@ -0,0 +1,13 @@ +declare + begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''INTEG_KONDUTO_PERIODO_ENVIO_PENDENTE'', ''INTEG_KONDUTO_PERIODO_ENVIO_PENDENTE'', ''2'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; +/ +declare + begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''INTEG_KONDUTO_PERIODO_QT_TENTA_ENVIO'', ''INTEG_KONDUTO_PERIODO_QT_TENTA_ENVIO'', ''2'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181211_1145__mantis12840.sql b/src/db/postgresql/migration/V20181211_1145__mantis12840.sql new file mode 100644 index 000000000..a2adda02f --- /dev/null +++ b/src/db/postgresql/migration/V20181211_1145__mantis12840.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (PUNTOVENTA_ID NUMBER(7,0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181228_0923__mantis12840.sql b/src/db/postgresql/migration/V20181228_0923__mantis12840.sql new file mode 100644 index 000000000..88347bb4c --- /dev/null +++ b/src/db/postgresql/migration/V20181228_0923__mantis12840.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (STATUSENVIO VARCHAR(20)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181228_1722__mantis12840.sql b/src/db/postgresql/migration/V20181228_1722__mantis12840.sql new file mode 100644 index 000000000..6eff05965 --- /dev/null +++ b/src/db/postgresql/migration/V20181228_1722__mantis12840.sql @@ -0,0 +1,10 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (QTDE_PARCELAS NUMBER(3), + MESANO_TARJETA VARCHAR(4), + PRIMEIROS_SEIS_DIGITOS_TARJETA VARCHAR(6), + ULTIMOS_QUATRO_DIGITOS_TARJETA VARCHAR(4), + VALOR NUMBER(7,2)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181228_1842__mantis12840.sql b/src/db/postgresql/migration/V20181228_1842__mantis12840.sql new file mode 100644 index 000000000..9d11be782 --- /dev/null +++ b/src/db/postgresql/migration/V20181228_1842__mantis12840.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (NSU VARCHAR(45), NUMAUTORIZACION VARCHAR(45)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190102_1134__mantis12840.sql b/src/db/postgresql/migration/V20190102_1134__mantis12840.sql new file mode 100644 index 000000000..da45da617 --- /dev/null +++ b/src/db/postgresql/migration/V20190102_1134__mantis12840.sql @@ -0,0 +1,13 @@ +DO $$ +BEGIN + INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, 'INTEG_KONDUTO_PERIODO_ENVIO_PENDENTE', 'INTEG_KONDUTO_PERIODO_ENVIO_PENDENTE', '2', '1', '1', '1', sysdate, '1'); + + INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, 'INTEG_KONDUTO_PERIODO_QT_TENTA_ENVIO', 'INTEG_KONDUTO_PERIODO_QT_TENTA_ENVIO', '2', '1', '1', '1', sysdate, '1'); + + EXCEPTION + WHEN OTHERS THEN NULL; + WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file