From 9fe2beedc854c43a8414bad69362ff3f628fac96 Mon Sep 17 00:00:00 2001 From: valdir Date: Fri, 20 Dec 2019 17:31:07 +0000 Subject: [PATCH] =?UTF-8?q?0017313:=20Ouro=20e=20Prata=20-=20(GLPI=20-=201?= =?UTF-8?q?9169)=20Cobran=C3=A7a=20adicional=20no=20Corrente=20Agencia=20-?= =?UTF-8?q?=20(taxa=20impressora=20BPe)=20bug#17313=20dev:thiago=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99441 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191219_1050__mantis17313.sql | 8 ++++++++ .../postgresql/migration/V20191219_1050__mantis17313.sql | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20191219_1050__mantis17313.sql create mode 100644 src/db/postgresql/migration/V20191219_1050__mantis17313.sql diff --git a/src/db/migration/V20191219_1050__mantis17313.sql b/src/db/migration/V20191219_1050__mantis17313.sql new file mode 100644 index 000000000..68d6de529 --- /dev/null +++ b/src/db/migration/V20191219_1050__mantis17313.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO TIPO_OPERACION_CC (TIPOOPERACIONCC_ID, DESCTIPO, CVETIPO, INDCREDITO, ACTIVO, FECMODIF, USUARIO_ID) VALUES (6, ''COBRANCA ADICIONAL'', ''CA'', 0, 1, SYSDATE, 99)'; + + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191219_1050__mantis17313.sql b/src/db/postgresql/migration/V20191219_1050__mantis17313.sql new file mode 100644 index 000000000..3bc88bd2d --- /dev/null +++ b/src/db/postgresql/migration/V20191219_1050__mantis17313.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + INSERT INTO TIPO_OPERACION_CC (TIPOOPERACIONCC_ID, DESCTIPO, CVETIPO, INDCREDITO, ACTIVO, FECMODIF, USUARIO_ID) VALUES (6, 'COBRANCA ADICIONAL', 'CA', 0, 1, SYSDATE, 99); + EXCEPTION WHEN duplicate_object THEN NULL; +END +$$; \ No newline at end of file