Merge pull request 'Schema deleted from table creation. Fixes bug#AL-4549' (!165) from AL-4549 into master

Reviewed-on: utilidades/Flyway#165
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
master
fernando.mx 2024-08-06 20:07:33 +00:00
commit 5ca0a25185
3 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.78.0</version>
<version>1.78.1</version>
<distributionManagement>
<repository>

View File

@ -3,7 +3,7 @@ declare
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE TABLE "VTABOL"."SOLICITUD_EXPRESO"
'CREATE TABLE "SOLICITUD_EXPRESO"
( "SOLICITUDEXPRESO_ID" NUMBER(15,0) NOT NULL PRIMARY KEY,
"CIUDADORIGEN_ID" NUMBER(7,0),
"CIUDADDESTINO_ID" NUMBER(7,0),
@ -49,22 +49,22 @@ end;
begin
execute immediate
'ALTER TABLE "VTABOL"."SOLICITUD_EXPRESO"
'ALTER TABLE "SOLICITUD_EXPRESO"
ADD FOREIGN KEY ("CIUDADORIGEN_ID")
REFERENCES "VTABOL"."CIUDAD" ("CIUDAD_ID") ENABLE;';
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
exception when object_exists then null;
end;
begin
execute immediate
'ALTER TABLE "VTABOL"."SOLICITUD_EXPRESO"
'ALTER TABLE "SOLICITUD_EXPRESO"
ADD FOREIGN KEY ("CIUDADDESTINO_ID")
REFERENCES "VTABOL"."CIUDAD" ("CIUDAD_ID") ENABLE;';
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
exception when object_exists then null;
end;
begin
execute immediate
'ALTER TABLE "VTABOL"."SOLICITUD_EXPRESO"
'ALTER TABLE "SOLICITUD_EXPRESO"
ADD FOREIGN KEY ("TIPOIDENTIFICACION_ID")
REFERENCES "VTABOL"."TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE;';
REFERENCES "TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE';
exception when object_exists then null;
end;

View File

@ -3,7 +3,7 @@ declare
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE TABLE "VTABOL"."TRAYECTOS_EXPRESOS"
'CREATE TABLE "TRAYECTOS_EXPRESOS"
( "TRAYECTOSEXPRESOS_ID" NUMBER(15,0) NOT NULL PRIMARY KEY,
"DESCTRAYECTO" VARCHAR2(60 BYTE),
"VALORTRAYECTO" NUMBER(15,2),
@ -23,14 +23,14 @@ declare
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE SEQUENCE "TRAYECTOS_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000;';
'CREATE SEQUENCE "TRAYECTOS_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
exception when object_exists then null;
end;
begin
execute immediate
'ALTER TABLE "VTABOL"."TRAYECTOS_EXPRESOS"
'ALTER TABLE "TRAYECTOS_EXPRESOS"
ADD FOREIGN KEY ("SOLICITUDEXPRESO_ID")
REFERENCES "VTABOL"."SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE;';
REFERENCES "SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE';
exception when object_exists then null;
end;