diff --git a/pom.xml b/pom.xml index 6c6ebf468..341726ef9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.90.0 + 1.90.1 diff --git a/src/db/migration/V20240903_1153__AL-4882.sql b/src/db/migration/V20240903_1153__AL-4882.sql new file mode 100644 index 000000000..251b54811 --- /dev/null +++ b/src/db/migration/V20240903_1153__AL-4882.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE PARADA ADD INDDISPONIBLETOTALBUS NUMBER(1, 0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20240903_1155__AL-4882.sql b/src/db/migration/V20240903_1155__AL-4882.sql new file mode 100644 index 000000000..cc3e7284c --- /dev/null +++ b/src/db/migration/V20240903_1155__AL-4882.sql @@ -0,0 +1,12 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'UPDATE PARADA SET INDDISPONIBLETOTALBUS = 1'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file