diff --git a/pom.xml b/pom.xml index 79a423bfd..85edcc17c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.39.1 + 1.39.2 diff --git a/src/db/migration/V20240422_1038__AL-3856.sql b/src/db/migration/V20240422_1038__AL-3856.sql new file mode 100644 index 000000000..b3dfeb7ef --- /dev/null +++ b/src/db/migration/V20240422_1038__AL-3856.sql @@ -0,0 +1,35 @@ +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 RUTA_COMBINACION ADD ALIASRUTA_ID NUMBER(7,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ +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 "RUTA_COMBINACION" ADD CONSTRAINT "FK_RUTA_ALIAS" FOREIGN KEY ("ALIASRUTA_ID") + REFERENCES "RUTA" ("RUTA_ID") ENABLE'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; + + + \ No newline at end of file