From 3322dc979dd3a19c31add26667519b8851017abc Mon Sep 17 00:00:00 2001 From: julio Date: Mon, 8 Jul 2019 19:31:20 +0000 Subject: [PATCH] fixes bug#14453 bug#14829 dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@95546 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190625_1559__mantis14533.sql | 226 ++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 src/db/migration/V20190625_1559__mantis14533.sql diff --git a/src/db/migration/V20190625_1559__mantis14533.sql b/src/db/migration/V20190625_1559__mantis14533.sql new file mode 100644 index 000000000..3f6b5377c --- /dev/null +++ b/src/db/migration/V20190625_1559__mantis14533.sql @@ -0,0 +1,226 @@ +declare column_exists exception; pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (cMunIni VARCHAR2(7))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (cMunFim VARCHAR2(7))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (UFIni VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (UFFim VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (nBP VARCHAR2(9))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (dhEmb VARCHAR2(25))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CST00 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CST20 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CST45 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CST90 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CSTOutraUF VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CSTSN VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vBC00 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (pICMS00 VARCHAR2(5))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vICMS00 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vBC20 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (pICMS20 VARCHAR2(5))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vICMS20 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vBP VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vDesconto VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vPgto VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp01 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp02 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp03 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp04 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp05 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp06 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (tpComp99 VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp01 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp02 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp03 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp04 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp05 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp06 VARCHAR2(15))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (vComp99 VARCHAR2(15))'; +exception when column_exists then null; + end; + / + declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (PREDBC VARCHAR2(5))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CSTOUTRAUF VARCHAR2(2))'; +exception when column_exists then null; + end; + / +declare column_exists exception; + pragma exception_init (column_exists , -01430); + begin execute immediate 'ALTER TABLE BPE ADD (CSTSN VARCHAR2(2))'; +exception when column_exists then null; + end; \ No newline at end of file