From 37a1cfcc09239b3a335d0887f32ad7909f814247 Mon Sep 17 00:00:00 2001 From: Fernando Abimael Alvarez Uc Date: Tue, 3 Sep 2024 11:58:41 -0600 Subject: [PATCH] Se agrega campo DISPONIBLE EN TOTALBUS a tabla PARADAS --- pom.xml | 2 +- src/db/migration/V20240903_1153__AL-4882.sql | 15 +++++++++++++++ src/db/migration/V20240903_1155__AL-4882.sql | 12 ++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240903_1153__AL-4882.sql create mode 100644 src/db/migration/V20240903_1155__AL-4882.sql 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