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;