From 89925fa3f80ff28b3a3317ea276a5efc352c0199 Mon Sep 17 00:00:00 2001 From: valdir Date: Wed, 5 May 2021 13:27:18 +0000 Subject: [PATCH] =?UTF-8?q?0022159:=20ESPEC=20GAP01=20-=20Op=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20Cancelamento/troca/transferencia=20para=20passagem=20em?= =?UTF-8?q?=20aberto=20bug#22159=20dev:valdevir=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@106534 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20210422_1008__mantis22159.sql | 17 +++++++++++++++++ .../migration/V20210422_1008__mantis22159.sql | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/db/migration/V20210422_1008__mantis22159.sql create mode 100644 src/db/postgresql/migration/V20210422_1008__mantis22159.sql diff --git a/src/db/migration/V20210422_1008__mantis22159.sql b/src/db/migration/V20210422_1008__mantis22159.sql new file mode 100644 index 000000000..7c5e0abee --- /dev/null +++ b/src/db/migration/V20210422_1008__mantis22159.sql @@ -0,0 +1,17 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD + (INDCANCELAEMABERTO NUMBER(1,0), + INDDEVOLVEEMABERTO NUMBER(1,0), + INDCANCELAEMERGENCIALAEMABERTO NUMBER(1,0), + INDTROCATITULARIDADEEMABERTO NUMBER(1,0), + INDTROCAEMABERTO NUMBER(1,0), + INDPERMITECANCELAR NUMBER(1,0), + INDPERMITEDEVOLVER NUMBER(1,0), + INDPERMITECANCELAREMERGENCIAL NUMBER(1,0), + INDPERMITETROCATITULARIDADE NUMBER(1,0), + INDPERMITEREATIVAR NUMBER(1,0))'; + exception when column_exists then null; +end; diff --git a/src/db/postgresql/migration/V20210422_1008__mantis22159.sql b/src/db/postgresql/migration/V20210422_1008__mantis22159.sql new file mode 100644 index 000000000..04f5df85a --- /dev/null +++ b/src/db/postgresql/migration/V20210422_1008__mantis22159.sql @@ -0,0 +1,16 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO ADD + (INDCANCELAEMABERTO NUMBER(1,0), + INDDEVOLVEEMABERTO NUMBER(1,0), + INDCANCELAEMERGENCIALAEMABERTO NUMBER(1,0), + INDTROCATITULARIDADEEMABERTO NUMBER(1,0), + INDTROCAEMABERTO NUMBER(1,0), + INDPERMITECANCELAR NUMBER(1,0), + INDPERMITEDEVOLVER NUMBER(1,0), + INDPERMITECANCELAREMERGENCIAL NUMBER(1,0), + INDPERMITETROCATITULARIDADE NUMBER(1,0), + INDPERMITEREATIVAR NUMBER(1,0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file