From 0d7b5bdfd59afc44c9ad0cd7633c93bd1e9e3164 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 16 Jun 2017 14:19:26 +0000 Subject: [PATCH] fixes bug #8983 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69988 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170616_1046__constanteAuditoria.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/db/migration/V20170616_1046__constanteAuditoria.sql diff --git a/src/db/migration/V20170616_1046__constanteAuditoria.sql b/src/db/migration/V20170616_1046__constanteAuditoria.sql new file mode 100644 index 000000000..27e6e2495 --- /dev/null +++ b/src/db/migration/V20170616_1046__constanteAuditoria.sql @@ -0,0 +1,12 @@ +declare +begin + begin + execute immediate 'INSERT INTO CONSTANTE(CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) + VALUES(CONSTANTE_SEQ.nextval,''AUDITAR_SISTEMA'',''Auditoria do sistema'',1,''false'',1,1,sysdate,1)'; + exception when others then null; + end; + begin + execute immediate 'UPDATE CONSTANTE SET VALORCONSTANTE = ''false'' WHERE NOMBCONSTANTE = ''AUDITAR_SISTEMA'''; + exception when others then null; + end; +end;