From fce9dce82f857ee8d62d80464b96da5266e99c2a Mon Sep 17 00:00:00 2001 From: valdir Date: Thu, 27 Oct 2022 19:17:55 +0000 Subject: [PATCH] =?UTF-8?q?Par=C3=A2metro=20Possui=20integra=C3=A7=C3=A3o?= =?UTF-8?q?=20W2i=20bug#al-1628=20dev:=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Criado script flyway para atualizar o valor com true para todos os registros que estiverem nulos git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@115026 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20221027_1612_AL1628.sql | 15 +++++++++++++++ .../migration/V20221027_1612_AL1628.sql | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 src/db/migration/V20221027_1612_AL1628.sql create mode 100644 src/db/postgresql/migration/V20221027_1612_AL1628.sql diff --git a/src/db/migration/V20221027_1612_AL1628.sql b/src/db/migration/V20221027_1612_AL1628.sql new file mode 100644 index 000000000..749f53baa --- /dev/null +++ b/src/db/migration/V20221027_1612_AL1628.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'UPDATE PARADA SET INDINTEGRACAOW2I = 1 WHERE INDINTEGRACAOW2I IS NULL '; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20221027_1612_AL1628.sql b/src/db/postgresql/migration/V20221027_1612_AL1628.sql new file mode 100644 index 000000000..11c8e2a5b --- /dev/null +++ b/src/db/postgresql/migration/V20221027_1612_AL1628.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + UPDATE PARADA SET INDINTEGRACAOW2I = 1 WHERE INDINTEGRACAOW2I IS NULL; +END +$$; \ No newline at end of file