From d0bb75bd527a91a6b32f4a0e81aa2c554ff516e3 Mon Sep 17 00:00:00 2001 From: emerson Date: Fri, 10 Aug 2018 19:44:05 +0000 Subject: [PATCH] fixes bug#0011731 dev: lucas qua: renato MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implementação do relatório de histórico de compras git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84145 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180806_0944__mantis11731.sql | 14 ++++++++++++++ .../migration/V20180806_1629__mantis11602.sql | 7 +++++++ .../migration/V20180806_1633__mantis11731.sql | 15 +++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 src/db/migration/V20180806_0944__mantis11731.sql create mode 100644 src/db/postgresql/migration/V20180806_1629__mantis11602.sql create mode 100644 src/db/postgresql/migration/V20180806_1633__mantis11731.sql diff --git a/src/db/migration/V20180806_0944__mantis11731.sql b/src/db/migration/V20180806_0944__mantis11731.sql new file mode 100644 index 000000000..1f77eff2f --- /dev/null +++ b/src/db/migration/V20180806_0944__mantis11731.sql @@ -0,0 +1,14 @@ +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 >> HISTORICO COMPRAS'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOHISTORICOCOMPRAS'', + 1, + TO_DATE(''06/08/18'',''DD/MM/RR''), + 1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180806_1629__mantis11602.sql b/src/db/postgresql/migration/V20180806_1629__mantis11602.sql new file mode 100644 index 000000000..2635a73f7 --- /dev/null +++ b/src/db/postgresql/migration/V20180806_1629__mantis11602.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_IMPRESORA ADD INDARCHIVOLAYOUTINTERNACIONAL NUMBER(1,0) DEFAULT 0; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180806_1633__mantis11731.sql b/src/db/postgresql/migration/V20180806_1633__mantis11731.sql new file mode 100644 index 000000000..a1018731b --- /dev/null +++ b/src/db/postgresql/migration/V20180806_1633__mantis11731.sql @@ -0,0 +1,15 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id, sistema_id, nombfuncion, descruta, activo, fecmodif, usuario_id) + values ( + nextval('funcion_sistema_seq'), + 1, + 'ADM > RELATORIOS >> HISTORICO COMPRAS', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOHISTORICOCOMPRAS', + 1, + now(), + 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file