From 28d1cadb9d8e8cc19cf6f2d012c09bfb3378af0b Mon Sep 17 00:00:00 2001 From: frederico Date: Mon, 4 Sep 2017 18:15:12 +0000 Subject: [PATCH] #9746 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@73488 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170904_1433__mantis9746.sql | 10 ++++++++++ src/db/migration/V20170904_1433__mantis9747_2.sql | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20170904_1433__mantis9746.sql create mode 100644 src/db/migration/V20170904_1433__mantis9747_2.sql diff --git a/src/db/migration/V20170904_1433__mantis9746.sql b/src/db/migration/V20170904_1433__mantis9746.sql new file mode 100644 index 000000000..6df7c7d19 --- /dev/null +++ b/src/db/migration/V20170904_1433__mantis9746.sql @@ -0,0 +1,10 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) +values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''ADM > RELATORIOS >> Segunda Via'', +''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOSEGUNDAVIA'', +''1'',to_date(''23/08/17','DD/MM/RR''),''1'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170904_1433__mantis9747_2.sql b/src/db/migration/V20170904_1433__mantis9747_2.sql new file mode 100644 index 000000000..6ac0299af --- /dev/null +++ b/src/db/migration/V20170904_1433__mantis9747_2.sql @@ -0,0 +1,3 @@ +ALTER TABLE BOLETO ADD FECSEGUNDAVIA DATE; +UPDATE BOLETO SET FECSEGUNDAVIA = FECMODIF +WHERE INDSEGUNDAVIAIMPRESSA = 1; \ No newline at end of file