From ce723db446f80878176847eded8b84bbc1ee26d0 Mon Sep 17 00:00:00 2001 From: valdir Date: Thu, 15 Apr 2021 20:25:29 +0000 Subject: [PATCH] =?UTF-8?q?0022109:=20Projeto=20Venda=20em=20Aberto=20Agui?= =?UTF-8?q?a=20-=20Habilitar=20pricing=20espec=C3=ADfico=20na=20venda=20em?= =?UTF-8?q?=20aberto=20bug#22109=20dev:wilian=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@106261 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210409_1427__mantis22053.sql | 7 +++++++ .../postgresql/migration/V20210409_1427__mantis22053.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20210409_1427__mantis22053.sql create mode 100644 src/db/postgresql/migration/V20210409_1427__mantis22053.sql diff --git a/src/db/migration/V20210409_1427__mantis22053.sql b/src/db/migration/V20210409_1427__mantis22053.sql new file mode 100644 index 000000000..9811477ea --- /dev/null +++ b/src/db/migration/V20210409_1427__mantis22053.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDPRICINGVENDAABERTO NUMBER(1,0)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210409_1427__mantis22053.sql b/src/db/postgresql/migration/V20210409_1427__mantis22053.sql new file mode 100644 index 000000000..aa5ce46d6 --- /dev/null +++ b/src/db/postgresql/migration/V20210409_1427__mantis22053.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD INDPRICINGVENDAABERTO NUMBER(1,0); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file