From 8898f0a3f0cea714b6b36248817a488d80b53dd0 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 11 May 2018 17:26:27 +0000 Subject: [PATCH] fixes bug#11107 dev:thiago qua:junia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@81789 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180509_1029__mantis11028.sql | 7 +++++++ src/db/migration/V20180509_1030__mantis11028.sql | 7 +++++++ src/db/migration/V20180509_1031__mantis11028.sql | 7 +++++++ src/db/migration/V20180509_1421__mantis11028.sql | 7 +++++++ src/db/migration/V20180509_1439__mantis11028.sql | 7 +++++++ 5 files changed, 35 insertions(+) create mode 100644 src/db/migration/V20180509_1029__mantis11028.sql create mode 100644 src/db/migration/V20180509_1030__mantis11028.sql create mode 100644 src/db/migration/V20180509_1031__mantis11028.sql create mode 100644 src/db/migration/V20180509_1421__mantis11028.sql create mode 100644 src/db/migration/V20180509_1439__mantis11028.sql diff --git a/src/db/migration/V20180509_1029__mantis11028.sql b/src/db/migration/V20180509_1029__mantis11028.sql new file mode 100644 index 000000000..8bc6bbb0e --- /dev/null +++ b/src/db/migration/V20180509_1029__mantis11028.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD (NUM_BPE VARCHAR2(9))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180509_1030__mantis11028.sql b/src/db/migration/V20180509_1030__mantis11028.sql new file mode 100644 index 000000000..594fa93ad --- /dev/null +++ b/src/db/migration/V20180509_1030__mantis11028.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA ADD (NUM_BPE VARCHAR2(9))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180509_1031__mantis11028.sql b/src/db/migration/V20180509_1031__mantis11028.sql new file mode 100644 index 000000000..7c21f538f --- /dev/null +++ b/src/db/migration/V20180509_1031__mantis11028.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'UPDATE BOLETO SET NUM_BPE = NUMFOLIOSISTEMA WHERE NUMSERIE_BPE IS NOT NULL'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180509_1421__mantis11028.sql b/src/db/migration/V20180509_1421__mantis11028.sql new file mode 100644 index 000000000..491501e01 --- /dev/null +++ b/src/db/migration/V20180509_1421__mantis11028.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'UPDATE CAJA SET NUM_BPE = NUMFOLIOSISTEMA WHERE NUMSERIE_BPE IS NOT NULL'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180509_1439__mantis11028.sql b/src/db/migration/V20180509_1439__mantis11028.sql new file mode 100644 index 000000000..d56a0f62c --- /dev/null +++ b/src/db/migration/V20180509_1439__mantis11028.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDEMITEBPEVDAIMPPOSTERIOR NUMBER(1,0) DEFAULT 1'; + exception when column_exists then null; +end; \ No newline at end of file