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