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;