From 0c9abf84c789e2f641f6f4438dd2208f53b42864 Mon Sep 17 00:00:00 2001 From: valdir Date: Fri, 6 Nov 2020 12:36:34 +0000 Subject: [PATCH] 0020890: (GLPI 30855) FORMA PAGAMENTO DEBITO NAS TRANSFERENCIAS bug#20890 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104170 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200611_0923__mantis20890.sql | 7 +++++++ .../postgresql/migration/V20200611_0923__mantis20890.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20200611_0923__mantis20890.sql create mode 100644 src/db/postgresql/migration/V20200611_0923__mantis20890.sql diff --git a/src/db/migration/V20200611_0923__mantis20890.sql b/src/db/migration/V20200611_0923__mantis20890.sql new file mode 100644 index 000000000..12a6d7ea4 --- /dev/null +++ b/src/db/migration/V20200611_0923__mantis20890.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE FORMA_PAGO SET CVESISTEMA = ''FORMA_PAGO_DEBITO'' WHERE FORMAPAGO_ID = 3'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200611_0923__mantis20890.sql b/src/db/postgresql/migration/V20200611_0923__mantis20890.sql new file mode 100644 index 000000000..c49c1d177 --- /dev/null +++ b/src/db/postgresql/migration/V20200611_0923__mantis20890.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + UPDATE FORMA_PAGO SET CVESISTEMA = 'FORMA_PAGO_DEBITO' WHERE FORMAPAGO_ID = 3; + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;