From cc3e3453160f1bb1a655617a65df1b519a0e7dca Mon Sep 17 00:00:00 2001 From: valdevir Date: Mon, 10 Aug 2020 12:38:55 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#13581=20qua:=20dev:Valdir=20Impleme?= =?UTF-8?q?ntado=20campo=20senha=20Configura=C3=A7=C3=A3o=20para=20granito?= =?UTF-8?q?=20(Comitador=20por=20Valdevir,=20mas=20desenvolvido=20por=20Wi?= =?UTF-8?q?lian=20Domingues=20conforme=20descrito=20no=20mantis).?= 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@102852 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200622_1009__mantis13581.sql | 7 +++++++ .../postgresql/migration/V20200622_1009__mantis13581.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20200622_1009__mantis13581.sql create mode 100644 src/db/postgresql/migration/V20200622_1009__mantis13581.sql diff --git a/src/db/migration/V20200622_1009__mantis13581.sql b/src/db/migration/V20200622_1009__mantis13581.sql new file mode 100644 index 000000000..97bf8fc3b --- /dev/null +++ b/src/db/migration/V20200622_1009__mantis13581.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESTACION_SITEF ADD (SENHA_CONFIG VARCHAR(30))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200622_1009__mantis13581.sql b/src/db/postgresql/migration/V20200622_1009__mantis13581.sql new file mode 100644 index 000000000..a39464afb --- /dev/null +++ b/src/db/postgresql/migration/V20200622_1009__mantis13581.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_SITEF ADD (SENHA_CONFIG VARCHAR(30)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file