From 20e9000359aa5cc21e80bd6535fe7d74c2f2a58f Mon Sep 17 00:00:00 2001 From: fabio Date: Thu, 18 Jan 2018 18:28:22 +0000 Subject: [PATCH] Fixes bug #10346 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@78143 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20171208_1701__mantis9775.sql | 4 ++-- src/db/migration/V20180111_1058__mantis10346.sql | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/db/migration/V20180111_1058__mantis10346.sql diff --git a/src/db/migration/V20171208_1701__mantis9775.sql b/src/db/migration/V20171208_1701__mantis9775.sql index 2025b11c8..64d2ee059 100644 --- a/src/db/migration/V20171208_1701__mantis9775.sql +++ b/src/db/migration/V20171208_1701__mantis9775.sql @@ -1,7 +1,7 @@ declare object_exists exception; - pragma exception_init (object_exists , -00955); + pragma exception_init (object_exists , -01430); begin - execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 NOT NULL )'; + execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 )'; exception when object_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20180111_1058__mantis10346.sql b/src/db/migration/V20180111_1058__mantis10346.sql new file mode 100644 index 000000000..26a8a45f3 --- /dev/null +++ b/src/db/migration/V20180111_1058__mantis10346.sql @@ -0,0 +1,9 @@ + +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 > RELATORIO >> GRATUIDADE ANTT'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEANTT'',1,sysdate,1)'; + exception when dup_val_on_index then null; +end;