Fixes bug#AL-4553
commit
448df9312a
|
@ -40,31 +40,3 @@ begin
|
||||||
)';
|
)';
|
||||||
exception when object_exists then null;
|
exception when object_exists then null;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "SOLICITUD_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'ALTER TABLE "SOLICITUD_EXPRESO"
|
|
||||||
ADD FOREIGN KEY ("CIUDADORIGEN_ID")
|
|
||||||
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'ALTER TABLE "SOLICITUD_EXPRESO"
|
|
||||||
ADD FOREIGN KEY ("CIUDADDESTINO_ID")
|
|
||||||
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'ALTER TABLE "SOLICITUD_EXPRESO"
|
|
||||||
ADD FOREIGN KEY ("TIPOIDENTIFICACION_ID")
|
|
||||||
REFERENCES "TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -17,20 +17,3 @@ begin
|
||||||
)';
|
)';
|
||||||
exception when object_exists then null;
|
exception when object_exists then null;
|
||||||
end;
|
end;
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'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 "TRAYECTOS_EXPRESOS"
|
|
||||||
ADD FOREIGN KEY ("SOLICITUDEXPRESO_ID")
|
|
||||||
REFERENCES "SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,29 +1,23 @@
|
||||||
declare
|
declare
|
||||||
object_exists exception;
|
dup_val_on_index exception;
|
||||||
pragma exception_init (object_exists , -00955);
|
except_02291 exception;
|
||||||
|
|
||||||
|
pragma exception_init (dup_val_on_index , -00001);
|
||||||
|
pragma exception_init (except_02291 , -02291);
|
||||||
begin
|
begin
|
||||||
execute immediate
|
execute immediate
|
||||||
'Insert into CONSTANTE (
|
'insert into CONSTANTE values (
|
||||||
"CONSTANTE_ID",
|
|
||||||
"NOMBCONSTANTE",
|
|
||||||
"DESCCONSTANTE",
|
|
||||||
"INDTIPOCONSTANTE",
|
|
||||||
"VALORCONSTANTE",
|
|
||||||
"INDMANTENIMIENTOUSUARIO",
|
|
||||||
"ACTIVO",
|
|
||||||
"FECMODIF",
|
|
||||||
"USUARIO_ID"
|
|
||||||
)
|
|
||||||
values (
|
|
||||||
CONSTANTE_SEQ.NEXTVAL,
|
CONSTANTE_SEQ.NEXTVAL,
|
||||||
"FORMAPAGOCREDITO_ID",
|
''FORMAPAGOCREDITO_ID'',
|
||||||
"ID de Pago a Crédito Expresos",
|
''ID de Pago a Crédito Expresos'',
|
||||||
null,
|
1,
|
||||||
"2",
|
''2'',
|
||||||
null,
|
1,
|
||||||
"1",
|
1,
|
||||||
sysdate,
|
sysdate,
|
||||||
"1"
|
1
|
||||||
);';
|
)';
|
||||||
exception when object_exists then null;
|
exception
|
||||||
|
when dup_val_on_index then null;
|
||||||
|
when except_02291 then null;
|
||||||
end;
|
end;
|
|
@ -0,0 +1,8 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'CREATE SEQUENCE "SOLICITUD_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
|
@ -0,0 +1,21 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_02275 exception;
|
||||||
|
except_02270 exception;
|
||||||
|
except_02261 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_02275 , -02275);
|
||||||
|
pragma exception_init (except_02270 , -02270);
|
||||||
|
pragma exception_init (except_02261 , -02261);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'ALTER TABLE "SOLICITUD_EXPRESO"
|
||||||
|
ADD FOREIGN KEY ("CIUDADORIGEN_ID")
|
||||||
|
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_02275 then null;
|
||||||
|
when except_02270 then null;
|
||||||
|
when except_02261 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,21 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_02275 exception;
|
||||||
|
except_02270 exception;
|
||||||
|
except_02261 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_02275 , -02275);
|
||||||
|
pragma exception_init (except_02270 , -02270);
|
||||||
|
pragma exception_init (except_02261 , -02261);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'ALTER TABLE "SOLICITUD_EXPRESO"
|
||||||
|
ADD FOREIGN KEY ("CIUDADDESTINO_ID")
|
||||||
|
REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_02275 then null;
|
||||||
|
when except_02270 then null;
|
||||||
|
when except_02261 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,21 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_02275 exception;
|
||||||
|
except_02270 exception;
|
||||||
|
except_02261 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_02275 , -02275);
|
||||||
|
pragma exception_init (except_02270 , -02270);
|
||||||
|
pragma exception_init (except_02261 , -02261);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'ALTER TABLE "SOLICITUD_EXPRESO"
|
||||||
|
ADD FOREIGN KEY ("TIPOIDENTIFICACION_ID")
|
||||||
|
REFERENCES "TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_02275 then null;
|
||||||
|
when except_02270 then null;
|
||||||
|
when except_02261 then null;
|
||||||
|
end;
|
|
@ -0,0 +1,8 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
pragma exception_init (object_exists , -00955);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'CREATE SEQUENCE "TRAYECTOS_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
|
||||||
|
exception when object_exists then null;
|
||||||
|
end;
|
|
@ -0,0 +1,21 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_02275 exception;
|
||||||
|
except_02270 exception;
|
||||||
|
except_02261 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_02275 , -02275);
|
||||||
|
pragma exception_init (except_02270 , -02270);
|
||||||
|
pragma exception_init (except_02261 , -02261);
|
||||||
|
begin
|
||||||
|
execute immediate
|
||||||
|
'ALTER TABLE "TRAYECTOS_EXPRESOS"
|
||||||
|
ADD FOREIGN KEY ("SOLICITUDEXPRESO_ID")
|
||||||
|
REFERENCES "SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_02275 then null;
|
||||||
|
when except_02270 then null;
|
||||||
|
when except_02261 then null;
|
||||||
|
end;
|
Loading…
Reference in New Issue