From 98c763583392b1073dacb0575f1c6674fc9fbd22 Mon Sep 17 00:00:00 2001 From: valdir Date: Tue, 1 Feb 2022 19:24:28 +0000 Subject: [PATCH] =?UTF-8?q?0024050:=20Espec=20Complementar=20-=20Automatiz?= =?UTF-8?q?a=C3=A7=C3=A3o=20de=20hor=C3=A1rio=20extra=20bug#24050=20dev:va?= =?UTF-8?q?ldevir=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@110682 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20220201_1048__mantis24050.sql | 7 +++++++ .../postgresql/migration/V20220201_1048__mantis24050.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20220201_1048__mantis24050.sql create mode 100644 src/db/postgresql/migration/V20220201_1048__mantis24050.sql diff --git a/src/db/migration/V20220201_1048__mantis24050.sql b/src/db/migration/V20220201_1048__mantis24050.sql new file mode 100644 index 000000000..6b9febcd2 --- /dev/null +++ b/src/db/migration/V20220201_1048__mantis24050.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (HORASALIDA_EXTRA DATE)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20220201_1048__mantis24050.sql b/src/db/postgresql/migration/V20220201_1048__mantis24050.sql new file mode 100644 index 000000000..0bd386fa9 --- /dev/null +++ b/src/db/postgresql/migration/V20220201_1048__mantis24050.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ESQUEMA_CORRIDA ADD (HORASALIDA_EXTRA DATE); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file