From b50df1fda86d22445d5d18a6e560d7107cde3bf3 Mon Sep 17 00:00:00 2001 From: alberto Date: Wed, 11 Jul 2018 18:53:00 +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@83295 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../postgresql/migration/V20180706_1035__mantis11035.sql | 8 ++++++++ .../postgresql/migration/V20180710_2005__mantis11536.sql | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 src/db/postgresql/migration/V20180706_1035__mantis11035.sql create mode 100644 src/db/postgresql/migration/V20180710_2005__mantis11536.sql diff --git a/src/db/postgresql/migration/V20180706_1035__mantis11035.sql b/src/db/postgresql/migration/V20180706_1035__mantis11035.sql new file mode 100644 index 000000000..a04f95bd3 --- /dev/null +++ b/src/db/postgresql/migration/V20180706_1035__mantis11035.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA_IMPOSTO ADD INDTRIBEMISSAO NUMERIC(1) DEFAULT 1; + ALTER TABLE EMPRESA_IMPOSTO ADD INDTRIBVIAGEM NUMERIC(1) DEFAULT 0; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; diff --git a/src/db/postgresql/migration/V20180710_2005__mantis11536.sql b/src/db/postgresql/migration/V20180710_2005__mantis11536.sql new file mode 100644 index 000000000..bb428380c --- /dev/null +++ b/src/db/postgresql/migration/V20180710_2005__mantis11536.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD CNPJAUTORIZADORA VARCHAR(20); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;