From 27662512deefcba3885589376d46178c2dfd3a2a Mon Sep 17 00:00:00 2001 From: "daniel.zauli" Date: Thu, 6 Jun 2019 19:00:21 +0000 Subject: [PATCH] 0014497: calculo de preco do Parana fixes bug#0014497 dev:Emerson qua:Fabin git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@94234 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190603_1653__mantis14497.sql | 7 +++++++ src/db/migration/V20190606_1144__mantis14497.sql | 7 +++++++ .../postgresql/migration/V20190603_1653__mantis14497.sql | 6 ++++++ .../postgresql/migration/V20190606_1144__mantis14497.sql | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 src/db/migration/V20190603_1653__mantis14497.sql create mode 100644 src/db/migration/V20190606_1144__mantis14497.sql create mode 100644 src/db/postgresql/migration/V20190603_1653__mantis14497.sql create mode 100644 src/db/postgresql/migration/V20190606_1144__mantis14497.sql diff --git a/src/db/migration/V20190603_1653__mantis14497.sql b/src/db/migration/V20190603_1653__mantis14497.sql new file mode 100644 index 000000000..fa14da539 --- /dev/null +++ b/src/db/migration/V20190603_1653__mantis14497.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'alter table CLASE_SERVICIO ADD COEFICIENTETARIFA NUMBER(14,9)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20190606_1144__mantis14497.sql b/src/db/migration/V20190606_1144__mantis14497.sql new file mode 100644 index 000000000..2f644bdb8 --- /dev/null +++ b/src/db/migration/V20190606_1144__mantis14497.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'alter table ORGAO_CONCEDENTE ADD COEFICIENTETARIFA NUMBER(14,9)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190603_1653__mantis14497.sql b/src/db/postgresql/migration/V20190603_1653__mantis14497.sql new file mode 100644 index 000000000..2a30cddb3 --- /dev/null +++ b/src/db/postgresql/migration/V20190603_1653__mantis14497.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CLASE_SERVICIO ADD COLUMN COEFICIENTETARIFA NUMERIC(14,9); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190606_1144__mantis14497.sql b/src/db/postgresql/migration/V20190606_1144__mantis14497.sql new file mode 100644 index 000000000..091d50410 --- /dev/null +++ b/src/db/postgresql/migration/V20190606_1144__mantis14497.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ORGAO_CONCEDENTE ADD COLUMN COEFICIENTETARIFA NUMERIC(14,9); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file