From ce94538fbd259982d3a491961c79927a26b828a1 Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 19 Jul 2017 21:44:23 +0000 Subject: [PATCH] fixes bug #9105 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71571 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170531_1010__mantis9105.sql | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/db/migration/V20170531_1010__mantis9105.sql diff --git a/src/db/migration/V20170531_1010__mantis9105.sql b/src/db/migration/V20170531_1010__mantis9105.sql new file mode 100644 index 000000000..17588630d --- /dev/null +++ b/src/db/migration/V20170531_1010__mantis9105.sql @@ -0,0 +1,47 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE SECRETARIA ADD (INDSERIESUBSERIE NUMBER(1,0) DEFAULT NULL)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CUPON_SECRETARIA ADD (SERIE VARCHAR(30) DEFAULT NULL)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CUPON_SECRETARIA ADD (SUBSERIE VARCHAR(30) DEFAULT NULL)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA_DET_PAGO ADD (SERIESUBSERIE VARCHAR2(30) DEFAULT NULL)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA_DET_PAGO ADD (CAJADIVERSOS_ID NUMBER(15,0) DEFAULT NULL)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA_DET_PAGO ADD (CAJADIVERSOSPAGO_ID NUMBER(15,0) DEFAULT NULL)'; + exception when column_exists then null; +end; \ No newline at end of file