From aab047fb5fe3f53345060c828d769a4e44bcb13f Mon Sep 17 00:00:00 2001 From: alberto Date: Fri, 27 Jul 2018 18:55:22 +0000 Subject: [PATCH] =?UTF-8?q?Adapta=C3=A7=C3=A3o=20do=20Totalbus=20para=20se?= =?UTF-8?q?r=20compat=C3=ADvel=20com=20o=20postgresql=20bug#11508=20dev:tr?= =?UTF-8?q?evezani=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@83738 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../postgresql/migration/V20180710_2100__mantis11508.sql | 9 +++++++++ .../postgresql/migration/V20180710_2110__mantis11508.sql | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/postgresql/migration/V20180710_2100__mantis11508.sql create mode 100644 src/db/postgresql/migration/V20180710_2110__mantis11508.sql diff --git a/src/db/postgresql/migration/V20180710_2100__mantis11508.sql b/src/db/postgresql/migration/V20180710_2100__mantis11508.sql new file mode 100644 index 000000000..2bc2edcb9 --- /dev/null +++ b/src/db/postgresql/migration/V20180710_2100__mantis11508.sql @@ -0,0 +1,9 @@ +DO $$ +BEGIN + ALTER TABLE BPE ADD XMLREGULAR text; + ALTER TABLE BPE ADD XMLCONTINGENCIA text; + ALTER TABLE BPE ADD XMLRESPOSTA text; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; diff --git a/src/db/postgresql/migration/V20180710_2110__mantis11508.sql b/src/db/postgresql/migration/V20180710_2110__mantis11508.sql new file mode 100644 index 000000000..85c726718 --- /dev/null +++ b/src/db/postgresql/migration/V20180710_2110__mantis11508.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE ruta ALTER COLUMN numruta TYPE VARCHAR(5); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;