From f07772cfad9e6f877dc5d06fd676e4deb3651b3a Mon Sep 17 00:00:00 2001 From: julio Date: Wed, 6 Oct 2021 18:50:58 +0000 Subject: [PATCH] fixes bug#23332 dev:Lucas qua:Wallysson git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@109004 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20210930_1652__mantis23332.sql | 7 ++++++ .../migration/V20211005_1425__mantis23333.sql | 24 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/db/migration/V20210930_1652__mantis23332.sql create mode 100644 src/db/migration/V20211005_1425__mantis23333.sql diff --git a/src/db/migration/V20210930_1652__mantis23332.sql b/src/db/migration/V20210930_1652__mantis23332.sql new file mode 100644 index 000000000..1e364cb4b --- /dev/null +++ b/src/db/migration/V20210930_1652__mantis23332.sql @@ -0,0 +1,7 @@ +declare + begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''ORGAO_CONCEDENTE_BPE_AGEPAN_MS'', ''ID DO ORGAO CONCEDENTE BPE AGEPAN - MS'', '''', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; +/ \ No newline at end of file diff --git a/src/db/migration/V20211005_1425__mantis23333.sql b/src/db/migration/V20211005_1425__mantis23333.sql new file mode 100644 index 000000000..b1b228c49 --- /dev/null +++ b/src/db/migration/V20211005_1425__mantis23333.sql @@ -0,0 +1,24 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE ADD (ACTIVO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE ADD (FECMODIF DATE)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE ADD (USUARIO_ID NUMBER(7,0))'; + exception when column_exists then null; +end; +/ \ No newline at end of file