From 9f6dccc758a931f3f6252a9bc0a5e87499980af5 Mon Sep 17 00:00:00 2001 From: alberto Date: Tue, 5 Sep 2017 23:27:35 +0000 Subject: [PATCH] bug fixes 9781 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@73543 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170905_2019__mantis9781.sql | 125 ++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 src/db/migration/V20170905_2019__mantis9781.sql diff --git a/src/db/migration/V20170905_2019__mantis9781.sql b/src/db/migration/V20170905_2019__mantis9781.sql new file mode 100644 index 000000000..20fb5f590 --- /dev/null +++ b/src/db/migration/V20170905_2019__mantis9781.sql @@ -0,0 +1,125 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_EXCESSOBAGAGEM NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_SEGUROOPCIONAL NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (DESCONTOS_FIXOS NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (DESCONTOS_EVENTUAIS NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (ROYATIES NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (ISS_RETIDO NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (BONIFICACAO_METAS NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (ENTREGAS_PASSAGEM NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_BPR NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (DEVOLVIDOS NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_BRUTA_EXCESSOBAGAGEM NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_BRUTA_SEGUROOPCIONAL NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (RECEITA_OUTROS NUMBER(12,2))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO MODIFY (COMISSAO_BPR NUMBER(12,2))'; + exception when column_exists then null; +end; +