From da6f628c99e9bd26236eeb8eec9d0933dd2e0db9 Mon Sep 17 00:00:00 2001 From: valdir Date: Fri, 24 Sep 2021 12:15:34 +0000 Subject: [PATCH] 0022773: Espec - Conta Corrente SVI bug#22773 dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@108815 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210827_1053__mantis22773.sql | 15 +++++++++++++++ .../migration/V20210827_1053__mantis22773.sql | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/db/migration/V20210827_1053__mantis22773.sql create mode 100644 src/db/postgresql/migration/V20210827_1053__mantis22773.sql diff --git a/src/db/migration/V20210827_1053__mantis22773.sql b/src/db/migration/V20210827_1053__mantis22773.sql new file mode 100644 index 000000000..bf11ea0f4 --- /dev/null +++ b/src/db/migration/V20210827_1053__mantis22773.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD TAXA_CONVENIENCIA_SVI NUMBER(7,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD TAXA_CONVENIENCIA_SVI NUMBER(7,2)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210827_1053__mantis22773.sql b/src/db/postgresql/migration/V20210827_1053__mantis22773.sql new file mode 100644 index 000000000..a1c310e85 --- /dev/null +++ b/src/db/postgresql/migration/V20210827_1053__mantis22773.sql @@ -0,0 +1,13 @@ +DO $$ +BEGIN + ALTER TABLE ORGAO_CONCEDENTE ADD TAXA_CONVENIENCIA_SVI NUMBER(7,2); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$ +/ +DO $$ +BEGIN + ALTER TABLE BOLETO ADD TAXA_CONVENIENCIA_SVI NUMBER(7,2); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$ \ No newline at end of file