From b4f96c40d820c456e21ea8f6fb07289c25c1efc4 Mon Sep 17 00:00:00 2001 From: aristides Date: Thu, 25 Feb 2021 19:24:40 +0000 Subject: [PATCH] fixes bug#21590 dev: Valdevir qua: xxx git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@105526 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210225_1257__mantis21590.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/db/migration/V20210225_1257__mantis21590.sql diff --git a/src/db/migration/V20210225_1257__mantis21590.sql b/src/db/migration/V20210225_1257__mantis21590.sql new file mode 100644 index 000000000..29f3f29d4 --- /dev/null +++ b/src/db/migration/V20210225_1257__mantis21590.sql @@ -0,0 +1,13 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -00001); +begin + execute immediate 'update +(select PF.INDLECTURA,PF.FECMODIF +from PERFIL_FUNCION PF +inner join FUNCION_SISTEMA FS on FS.FUNCIONSISTEMA_ID = PF.FUNCIONSISTEMA_ID +where FS.SISTEMA_ID=2 and PF.INDLECTURA=1) TB +SET TB.INDLECTURA=0, +TB.FECMODIF=SYSDATE'; + exception when column_exists then null; +end; \ No newline at end of file