From 8c0c488ea1da91d63d3909a1cafd71f55bcd92a6 Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 8 Feb 2018 13:47:42 +0000 Subject: [PATCH] BPe git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@78874 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180131_1850__mantis9440.sql | 6 ++++++ src/db/migration/V20180206_1450__mantis9441.sql | 16 ++++++++++++++++ src/db/migration/V20180207_1715__mantis9440.sql | 7 +++++++ src/db/migration/V20180207_1850__mantis9440.sql | 7 +++++++ 4 files changed, 36 insertions(+) create mode 100644 src/db/migration/V20180131_1850__mantis9440.sql create mode 100644 src/db/migration/V20180206_1450__mantis9441.sql create mode 100644 src/db/migration/V20180207_1715__mantis9440.sql create mode 100644 src/db/migration/V20180207_1850__mantis9440.sql diff --git a/src/db/migration/V20180131_1850__mantis9440.sql b/src/db/migration/V20180131_1850__mantis9440.sql new file mode 100644 index 000000000..3455f9b55 --- /dev/null +++ b/src/db/migration/V20180131_1850__mantis9440.sql @@ -0,0 +1,6 @@ +declare + begin + execute immediate 'Insert into MOTIVO_CANCELACION (MOTIVOCANCELACION_ID,DESCMOTIVO,TIPOMOTIVO,ACTIVO,FECMODIF,USUARIO_ID,CVESISTEMA) +values (MOTIVO_CANCELACION_SEQ.nextval,''CANCELAMENTO BPE'',''B'',1,sysdate,1,''CANCELAMENTO_BPE'')'; + exception when others then null; +end; diff --git a/src/db/migration/V20180206_1450__mantis9441.sql b/src/db/migration/V20180206_1450__mantis9441.sql new file mode 100644 index 000000000..4fbdfbf92 --- /dev/null +++ b/src/db/migration/V20180206_1450__mantis9441.sql @@ -0,0 +1,16 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''BPE_VERSAO'',''VERSAO XML BPE'',''1'',''1.00'',''1'',''1'',sysdate,''1'')'; + exception when dup_val_on_index then null; +end; +/ + +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''BPE_AMBIENTE'',''AMBIENTE DO BPE'',''1'',''2'',''1'',''1'',sysdate,''1'')'; + exception when dup_val_on_index then null; +end; diff --git a/src/db/migration/V20180207_1715__mantis9440.sql b/src/db/migration/V20180207_1715__mantis9440.sql new file mode 100644 index 000000000..d4fd829b8 --- /dev/null +++ b/src/db/migration/V20180207_1715__mantis9440.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (INDREDBASEICMSBPE NUMBER(1))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180207_1850__mantis9440.sql b/src/db/migration/V20180207_1850__mantis9440.sql new file mode 100644 index 000000000..83aa60625 --- /dev/null +++ b/src/db/migration/V20180207_1850__mantis9440.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BPE ADD ("TPINTEGRA" VARCHAR2(1))'; + exception when column_exists then null; +end;