Merge branch 'master' of local repository into AL-4545_1

master
Lucas 2024-10-29 15:40:12 -03:00
commit 79aec2a4eb
8 changed files with 103 additions and 0 deletions

View File

@ -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 'insert into status_solicitud_expreso values (1,''SOLICITADA'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -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 'insert into status_solicitud_expreso values (2,''COTIZACION_ENVIADA'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -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 'insert into status_solicitud_expreso values (3,''AUTORIZADA'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -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 'insert into status_solicitud_expreso values (4,''RECHAZADA'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -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 'insert into status_solicitud_expreso values (5,''CUMPLIDO'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -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 'insert into status_solicitud_expreso values (6,''PROGRAMADO'', 1, sysdate, 1)';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -0,0 +1,31 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE TABLE REVENUE_CONFIG
("REVENUECONFIG_ID" NUMBER(9,0) NOT NULL,
"INDUSACANALVENTA" NUMBER(1,0),
"ACTIVO" NUMBER(1,0),
"FECMODIF" DATE,
"USUARIO_ID" NUMBER(7,0),
"TOKEN" VARCHAR2(50 BYTE),
"CONNECTOR_ID" VARCHAR2(50 BYTE),
"URL_PRICE" VARCHAR2(200 BYTE),
"URL_PRICE_CANALVENDA" VARCHAR2(200 BYTE),
"URL_MARKET" VARCHAR2(200 BYTE),
"URL_SITE" VARCHAR2(200 BYTE),
"URL_ALERTA" VARCHAR2(200 BYTE),
"URL_GEOLOC" VARCHAR2(200 BYTE),
CONSTRAINT "PK__REVENUE_CONFIG" PRIMARY KEY ("REVENUECONFIG_ID")
)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE REVENUE_CONFIG_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER';
exception when object_exists then null;
end;