From a32cd0532ddab4ff9125574f0284429867996118 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 19 Apr 2019 00:10:04 +0000 Subject: [PATCH] fixes bug#13963 dev:wilian qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@92137 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190416_1334__mantis13963.sql | 7 +++++++ .../postgresql/migration/V20190416_1334__mantis13963.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20190416_1334__mantis13963.sql create mode 100644 src/db/postgresql/migration/V20190416_1334__mantis13963.sql diff --git a/src/db/migration/V20190416_1334__mantis13963.sql b/src/db/migration/V20190416_1334__mantis13963.sql new file mode 100644 index 000000000..1c5d750e7 --- /dev/null +++ b/src/db/migration/V20190416_1334__mantis13963.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO MOTIVO_CANCELACION (MOTIVOCANCELACION_ID,DESCMOTIVO,TIPOMOTIVO,ACTIVO,FECMODIF,USUARIO_ID,CVESISTEMA,INDEXIBECANCEL) + VALUES (MOTIVO_CANCELACION_SEQ.NEXTVAL, ''ALTERACAO POLTRONA'', ''B'', 1, SYSDATE, 1, ''ALTERACAO_POLTRONA'', 0)'; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190416_1334__mantis13963.sql b/src/db/postgresql/migration/V20190416_1334__mantis13963.sql new file mode 100644 index 000000000..151da14b3 --- /dev/null +++ b/src/db/postgresql/migration/V20190416_1334__mantis13963.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + INSERT INTO MOTIVO_CANCELACION (MOTIVOCANCELACION_ID,DESCMOTIVO,TIPOMOTIVO,ACTIVO,FECMODIF,USUARIO_ID,CVESISTEMA,INDEXIBECANCEL) + VALUES (nextval('MOTIVO_CANCELACION_SEQ'), 'ALTERACAO POLTRONA', 'B', 1, now(), 1, 'ALTERACAO_POLTRONA', 0); +END +$$; \ No newline at end of file