correção duplicidade da pasta flyway erro jenkins
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@110146 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
55c5b50690
commit
cf6b49b277
Binary file not shown.
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FECHAMENTO_PARAMPTOVTA ADD (TIPOPAGAMENTO VARCHAR2(1) DEFAULT ''B'')';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
pragma exception_init (dup_val_on_index , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update autorizacion set NOMBAUTORIZACION = ''AUT_AUMENTA_DISPONIBILIDAD'' where NOMBAUTORIZACION = ''AUT_AUMENTA_DISPONIB''';
|
|
||||||
exception when dup_val_on_index then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE DIAGRAMA_AUTOBUS ADD INDBARCO NUMBER(1,0) DEFAULT 0';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,42 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE
|
|
||||||
CASETA_PEAJE_EXCEPCION
|
|
||||||
(
|
|
||||||
CASETAPEAJEEXCEPCION_ID NUMBER(7) NOT NULL,
|
|
||||||
CASETAPEAJE_ID NUMBER(7) NOT NULL,
|
|
||||||
FECHAVENTAINI DATE,
|
|
||||||
FECHAVENTAFIN DATE,
|
|
||||||
FECHORINICIO DATE,
|
|
||||||
FECHORFINAL DATE,
|
|
||||||
INDLUNES NUMBER(1),
|
|
||||||
INDMARTES NUMBER(1),
|
|
||||||
INDMIERCOLES NUMBER(1),
|
|
||||||
INDJUEVES NUMBER(1),
|
|
||||||
INDVIERNES NUMBER(1),
|
|
||||||
INDSABADO NUMBER(1),
|
|
||||||
INDDOMINGO NUMBER(1),
|
|
||||||
ACTIVO NUMBER(1),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7),
|
|
||||||
PRECIO NUMBER(7,2),
|
|
||||||
CONSTRAINT CASETA_PEAJE_EXCEPCION_PK PRIMARY KEY (CASETAPEAJEEXCEPCION_ID),
|
|
||||||
CONSTRAINT CASETAPEXCEPCION_CASETA_FK FOREIGN KEY (CASETAPEAJE_ID) REFERENCES
|
|
||||||
CASETA_PEAJE (CASETAPEAJE_ID),
|
|
||||||
CONSTRAINT NNC_CASETAPEAJEEXCEPCION_ID CHECK ("CASETAPEAJEEXCEPCION_ID" IS NOT NULL),
|
|
||||||
CONSTRAINT NNC_CASETAPEAJE_ID CHECK ("CASETAPEAJE_ID" IS NOT NULL)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "CASETA_PEAJE_EXCEPCION_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CONF_RESTRICAO_CANALVENTA ADD (INDEXIBECORRIDABLOQ NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,16 +0,0 @@
|
||||||
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 FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values
|
|
||||||
(FUNCION_SISTEMA_SEQ.NEXTVAL,''2'',''VDA > MANUTENÇÃO DE SERVIÇOS >> MODIFICAÇÕES DE SERVIÇO >>> INICIADO/FECHADO'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.MODIFICASERVICOINICIADOFECHADO'',''1'',SYSDATE,''1'')';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_02291 then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
pragma exception_init (dup_val_on_index , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update autorizacion set NOMBAUTORIZACION = ''AUT_EXCEDE_TRANSFERENCIA'' where NOMBAUTORIZACION = ''AUT_CAMBIO_ULTIMA_HR''';
|
|
||||||
exception when dup_val_on_index then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
pragma exception_init (dup_val_on_index , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update autorizacion set activo = 0 where NOMBAUTORIZACION in (''AUT_BOL_ASIENTOS'',''AUT_CAMBIAR_FOLIO'',''AUT_CANCELA_PAGOTAR'',''AUT_ENTREGA_EXTRAVIA'',''AUT_EXCEDE_TRANSFERE'',''AUT_OTORGAR_CORTESIA'')';
|
|
||||||
exception when dup_val_on_index then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE RUTA ADD INDRUTACENLADA NUMERIC(1) default 0';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,21 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EXCEPCION_PEAJE_VIGENCIA ADD (CASETAPEAJE_ID NUMBER(7))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
except_02275 exception;
|
|
||||||
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
pragma exception_init (column_exists , -02275);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EXCEPCION_PEAJE_VIGENCIA ADD CONSTRAINT EXCPEAJEVIGENCIA_CASETA_FK FOREIGN KEY (CASETAPEAJE_ID) REFERENCES CASETA_PEAJE (CASETAPEAJE_ID)';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when column_exists then null;
|
|
||||||
when except_02275 then null;
|
|
||||||
end;
|
|
|
@ -1,124 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'
|
|
||||||
CREATE TABLE MENSAJE (
|
|
||||||
MENSAJE_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
FECINI DATE,
|
|
||||||
FECFIN DATE,
|
|
||||||
DESCRIPCION VARCHAR2(500 BYTE),
|
|
||||||
INDTIPO NUMBER(1,0),
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
CONSTRAINT "PK_MENSAJE" PRIMARY KEY ("MENSAJE_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_USUARIO" FOREIGN KEY ("USUARIO_ID") REFERENCES USUARIO("USUARIO_ID")
|
|
||||||
)
|
|
||||||
';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'
|
|
||||||
CREATE TABLE MENSAJE_PUNTO_VENTA(
|
|
||||||
MENSAJE_PUNTO_VENTA_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
MENSAJE_ID NUMBER(7,0),
|
|
||||||
PUNTOVENTA_ID NUMBER(7,0),
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
CONSTRAINT "PK_MENSAJE_PUNTO_VENTA" PRIMARY KEY ("MENSAJE_PUNTO_VENTA_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_PTO_VENTA_MENSAJE" FOREIGN KEY ("MENSAJE_ID") REFERENCES MENSAJE("MENSAJE_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_PTO_VENTA_PTO_VENTA" FOREIGN KEY ("PUNTOVENTA_ID") REFERENCES PUNTO_VENTA("PUNTOVENTA_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_PUNTO_VENTA_USUARIO" FOREIGN KEY ("USUARIO_ID") REFERENCES USUARIO("USUARIO_ID")
|
|
||||||
)
|
|
||||||
';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'
|
|
||||||
CREATE TABLE MENSAJE_EMPRESA(
|
|
||||||
MENSAJE_EMPRESA_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
MENSAJE_ID NUMBER(7,0),
|
|
||||||
EMPRESA_ID NUMBER(7,0),
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
CONSTRAINT "PK_MENSAJE_EMPRESA" PRIMARY KEY ("MENSAJE_EMPRESA_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_EMPRESA_MENSAJE" FOREIGN KEY ("MENSAJE_ID") REFERENCES MENSAJE("MENSAJE_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_EMPRESA_EMPRESA" FOREIGN KEY ("EMPRESA_ID") REFERENCES EMPRESA("EMPRESA_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_EMPRESA_USUARIO" FOREIGN KEY ("USUARIO_ID") REFERENCES USUARIO("USUARIO_ID")
|
|
||||||
)
|
|
||||||
';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'
|
|
||||||
CREATE TABLE MENSAJE_USUARIO(
|
|
||||||
MENSAJE_USUARIO_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
MENSAJE_ID NUMBER(7,0),
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
FECLEIDO DATE,
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
USUARIOMODIF_ID NUMBER(7,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
CONSTRAINT "PK_MENSAJE_USUARIO" PRIMARY KEY ("MENSAJE_USUARIO_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_USUARIO_MENSAJE" FOREIGN KEY ("MENSAJE_ID") REFERENCES MENSAJE("MENSAJE_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_USUARIO_USUARIO" FOREIGN KEY ("USUARIO_ID") REFERENCES USUARIO("USUARIO_ID"),
|
|
||||||
CONSTRAINT "FK_MENSAJE_USUMODIF_USUARIO" FOREIGN KEY ("USUARIOMODIF_ID") REFERENCES USUARIO("USUARIO_ID")
|
|
||||||
)
|
|
||||||
';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "MENSAJE_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "MENSAJE_PUNTO_VENTA_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "MENSAJE_EMPRESA_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE SEQUENCE "MENSAJE_USUARIO_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,24 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA ADD INDGENNUMFOLIOVTAINTIMPOST NUMBER(1,0) DEFAULT 0 NOT NULL';
|
|
||||||
exception
|
|
||||||
when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO FUNCION_SISTEMA VALUES
|
|
||||||
(
|
|
||||||
FUNCION_SISTEMA_SEQ.NEXTVAL,
|
|
||||||
1,
|
|
||||||
''ADM > CATALOGOS >> EMPRESA >> GERA NUMERO BILHETE VENDA INTERNET E IMP. POSTERIOR'',
|
|
||||||
''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.EMPRESA.GENERAFOLIOSISTEMAVTAINTIMPPOSTERIOR'',
|
|
||||||
1 ,
|
|
||||||
sysdate,
|
|
||||||
1
|
|
||||||
)';
|
|
||||||
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE TAXA_EMBARQUE_PARADA ADD (EMPRESA_ID NUMBER(7) DEFAULT -1 NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,17 +0,0 @@
|
||||||
DECLARE
|
|
||||||
itemExists NUMBER;
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
BEGIN
|
|
||||||
itemExists := 0;
|
|
||||||
|
|
||||||
SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
|
|
||||||
FROM ALL_CONSTRAINTS
|
|
||||||
WHERE UPPER(CONSTRAINT_NAME) = UPPER('TARIFA_UNICA');
|
|
||||||
|
|
||||||
IF itemExists > 0 THEN
|
|
||||||
EXECUTE IMMEDIATE 'ALTER TABLE TARIFA DROP CONSTRAINT TARIFA_UNICA';
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
exception when column_exists then null;
|
|
||||||
END;
|
|
|
@ -1,17 +0,0 @@
|
||||||
DECLARE
|
|
||||||
itemExists NUMBER;
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
BEGIN
|
|
||||||
itemExists := 0;
|
|
||||||
|
|
||||||
SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
|
|
||||||
FROM ALL_CONSTRAINTS
|
|
||||||
WHERE UPPER(CONSTRAINT_NAME) = UPPER('UNIQUE_TARIFA_OFICIAL');
|
|
||||||
|
|
||||||
IF itemExists > 0 THEN
|
|
||||||
EXECUTE IMMEDIATE 'ALTER TABLE TARIFA_OFICIAL DROP CONSTRAINT UNIQUE_TARIFA_OFICIAL';
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
exception when column_exists then null;
|
|
||||||
END;
|
|
|
@ -1,13 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ruta set INDRUTACENLADA=0 where INDRUTACENLADA is null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table ruta modify (INDRUTACENLADA not null)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table tarjeta_fidelidad modify numtarjeta NUMBER(14,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_ML2 ADD (COOVINCULADO VARCHAR2(9))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,22 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE FISCAL_ENVIO_FISCO (
|
|
||||||
FISCALENVIOFISCO_ID NUMBER(15) NOT NULL,
|
|
||||||
NUMSERIE20 VARCHAR2(20) NOT NULL,
|
|
||||||
DATAMOV VARCHAR2(8) NOT NULL,
|
|
||||||
ARQUIVO VARCHAR2(50) NOT NULL,
|
|
||||||
RETORNO VARCHAR2(50)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE FISCAL_ENVIO_FISCO_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_ENVIO_FISCO ADD (TENTATIVAS NUMBER(2))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table peaje modify (importepeaje number(15, 10))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,5 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_IMPRESSORA RENAME COLUMN INDGERAARQGT TO INDCTRL';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_ML2 ADD (COOCUPOMFISCAL VARCHAR2(9))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,64 +0,0 @@
|
||||||
/* INSERINDO O EVENTO EXTRA DIFERENCA DE TRANSFERENCIA OCD */
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate '
|
|
||||||
INSERT
|
|
||||||
INTO TIPO_EVENTO_EXTRA
|
|
||||||
(
|
|
||||||
TIPOEVENTOEXTRA_ID,
|
|
||||||
PARAMARTICULO_ID,
|
|
||||||
INDTIPO,
|
|
||||||
IMPMAX,
|
|
||||||
INDVALIDACORTE,
|
|
||||||
INDVALIDADOCUMENTO,
|
|
||||||
INDCONTRAPARTIDA,
|
|
||||||
INDBOLETO,
|
|
||||||
INDORDENSERVICIO,
|
|
||||||
PORCIVA,
|
|
||||||
FORMAPAGO_ID,
|
|
||||||
USUARIO_ID,
|
|
||||||
FECMODIF,
|
|
||||||
ACTIVO,
|
|
||||||
PARAMARTICULO2_ID,
|
|
||||||
INDTIPO2,
|
|
||||||
FORMAPAGO2_ID,
|
|
||||||
INDOPERACION,
|
|
||||||
DESCTIPOEVENTO,
|
|
||||||
PROVEEDOR,
|
|
||||||
IMPFISCALNUMOPERACAO,
|
|
||||||
NATUREZA,
|
|
||||||
CONTACONTABIL,
|
|
||||||
INDCONFERENCIAFISICACOMISSAO
|
|
||||||
)
|
|
||||||
VALUES
|
|
||||||
(
|
|
||||||
''99978'',
|
|
||||||
NULL,
|
|
||||||
''1'',
|
|
||||||
''99999'',
|
|
||||||
NULL,
|
|
||||||
''0'',
|
|
||||||
NULL,
|
|
||||||
''0'',
|
|
||||||
NULL,
|
|
||||||
''0'',
|
|
||||||
NULL,
|
|
||||||
''6486'',
|
|
||||||
to_date(''22/08/2016 14:55:00'',''DD/MM/YYYY HH24:MI:SS''),
|
|
||||||
''0'',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
''1'',
|
|
||||||
''DIFERENCA DE TRANSF. OCD'',
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
''RECEITA'',
|
|
||||||
NULL,
|
|
||||||
NULL
|
|
||||||
)
|
|
||||||
';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_ML2 MODIFY (DESCTIPODOC VARCHAR2(18))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_ML2 MODIFY (DESCTIPODOC2 VARCHAR2(18))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE TARIFA_KM MODIFY (KMATE NUMBER(7, 2))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE OCD_PARAM ADD (INDOCDTRANSFERENCIA NUMBER(1,0) DEFAULT 0 NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE DIAGRAMA_AUTOBUS ADD (INDTIPO NUMBER(1))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'UPDATE DIAGRAMA_AUTOBUS SET INDTIPO = INDBARCO + 1';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (INDGERAARQGT NUMBER(1))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'UPDATE FISCAL_IMPRESSORA SET INDGERAARQGT = INDCTRL';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,23 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > INTEGRACION'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.INTEGRACION'',1,SYSDATE, -1)';
|
|
||||||
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > ANALITICO'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.ANALITICO'',1,SYSDATE, -1)';
|
|
||||||
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > ANALITICO > BGM'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.ANALITICO.BGM'',1,SYSDATE,-1)';
|
|
||||||
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,24 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE CLASSE_INDICE_PEAJE (
|
|
||||||
CLASSE_INDICE_PEAJE_ID INTEGER PRIMARY KEY,
|
|
||||||
ACTIVO NUMERIC(1),
|
|
||||||
CLASSE_SERVICIO_ID INTEGER,
|
|
||||||
ORGAOCONCEDENTE_ID INTEGER,
|
|
||||||
INDICE_PEAJE INTEGER,
|
|
||||||
FOREIGN KEY (CLASSE_SERVICIO_ID) REFERENCES CLASE_SERVICIO (CLASESERVICIO_ID),
|
|
||||||
FOREIGN KEY (ORGAOCONCEDENTE_ID) REFERENCES ORGAO_CONCEDENTE (ORGAOCONCEDENTE_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "CLASSE_INDICE_PEAJE_SEQ" MINVALUE 1 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,174 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE INSCRICAO_ESTADUAL ADD (EQUIVALENCIAAG NUMBER(7))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE PUNTO_VENTA ADD (INDINTEGRADOAG NUMBER(1) DEFAULT 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE PUNTO_VENTA ADD (MOTIVONAOINTEGRADOAG VARCHAR2(256))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_CONTAS_RECEBER (
|
|
||||||
AGCONTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
ESTABELECIMENTO VARCHAR2(4) NOT NULL,
|
|
||||||
CENTRORESULTADOS VARCHAR2(10),
|
|
||||||
CLIENTE VARCHAR2(10) NOT NULL,
|
|
||||||
FCLIENTEIDWS VARCHAR2(30),
|
|
||||||
RECEITA VARCHAR2(250) NOT NULL,
|
|
||||||
DOCUMENTO VARCHAR2(20),
|
|
||||||
EMISSAO DATE NOT NULL,
|
|
||||||
OBSERVACAO VARCHAR2(60),
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
PRIMARY KEY (AGCONTASRECEBER_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_SERVICOS_CTAS_RECEBER (
|
|
||||||
AGSERVICOSCTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
AGCONTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
SERVICO VARCHAR2(4) NOT NULL,
|
|
||||||
MODALIDADE VARCHAR2(2) NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGSERVICOSCTASRECEBER_ID),
|
|
||||||
CONSTRAINT FK_AG_SERVICOS_CTASRECEBER FOREIGN KEY (AGCONTASRECEBER_ID) REFERENCES AG_CONTAS_RECEBER (AGCONTASRECEBER_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER (
|
|
||||||
AGVENCIMENTOSDIVCTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
AGCONTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
DATAVENCIMENTO DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
TIPODOCUMENTO VARCHAR2(3) NOT NULL,
|
|
||||||
TITULO VARCHAR2(20),
|
|
||||||
AGENTECOBRADOR VARCHAR2(4) NOT NULL,
|
|
||||||
DESCONTOPREVISTO NUMBER(12,2) DEFAULT 0 NOT NULL,
|
|
||||||
NUMBOLETO VARCHAR2(20) NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGVENCIMENTOSDIVCTASRECEBER_ID),
|
|
||||||
CONSTRAINT FK_AG_VENCDIV_CTASRECEBER FOREIGN KEY (AGCONTASRECEBER_ID) REFERENCES AG_CONTAS_RECEBER (AGCONTASRECEBER_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_RATEIO_CTAS_RECEBER (
|
|
||||||
AGRATEIOCTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
AGCONTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
ESTABELECIMENTO VARCHAR2(4) NOT NULL,
|
|
||||||
CENTRORESULTADOS VARCHAR2(10),
|
|
||||||
RECEITA VARCHAR2(250) NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGRATEIOCTASRECEBER_ID),
|
|
||||||
CONSTRAINT FK_AG_RATEIO_CTASRECEBER FOREIGN KEY (AGCONTASRECEBER_ID) REFERENCES AG_CONTAS_RECEBER (AGCONTASRECEBER_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_VNCTO_CARTAO_CTAS_RECEBER (
|
|
||||||
AGVNCTOCARTAOCTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
AGCONTASRECEBER_ID NUMBER(7) NOT NULL,
|
|
||||||
REDE VARCHAR2(20) NOT NULL,
|
|
||||||
BANDEIRA VARCHAR2(20) NOT NULL,
|
|
||||||
VENCIMENTO DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGVNCTOCARTAOCTASRECEBER_ID),
|
|
||||||
CONSTRAINT FK_AG_VENCCARTAO_CTASRECEBER FOREIGN KEY (AGCONTASRECEBER_ID) REFERENCES AG_CONTAS_RECEBER (AGCONTASRECEBER_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_CONTAS_PAGAR (
|
|
||||||
AGCONTASPAGAR_ID NUMBER(7) NOT NULL,
|
|
||||||
ESTABELECIMENTO VARCHAR2(4) NOT NULL,
|
|
||||||
CENTRORESULTADOS VARCHAR2(10),
|
|
||||||
FORNECEDOR VARCHAR2(6) NOT NULL,
|
|
||||||
DESPESA VARCHAR2(10) NOT NULL,
|
|
||||||
DOCUMENTO VARCHAR2(40),
|
|
||||||
EMISSAO DATE NOT NULL,
|
|
||||||
ENTRADA DATE NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
PRIMARY KEY (AGCONTASPAGAR_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_VENCIMENTOS_CTAS_PAGAR (
|
|
||||||
AGVENCIMENTOSCTASPAGAR_ID NUMBER(7) NOT NULL,
|
|
||||||
AGCONTASPAGAR_ID NUMBER(7) NOT NULL,
|
|
||||||
VENCIMENTO DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
SEQNUMPARCELA NUMBER(3) DEFAULT 1,
|
|
||||||
TITULO VARCHAR2(20),
|
|
||||||
PRIMARY KEY (AGVENCIMENTOSCTASPAGAR_ID),
|
|
||||||
CONSTRAINT FK_AG_VENCPAGAR_CTASPAGAR FOREIGN KEY (AGCONTASPAGAR_ID) REFERENCES AG_CONTAS_PAGAR (AGCONTASPAGAR_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'DELETE FROM CLASSE_INDICE_PEAJE';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE MODIFY (INDICE_PEAJE NUMERIC(7,2))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table PUNTO_VENTA ADD (FECFECHAMENTO DATE, FECABERTURA DATE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,55 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_ADIANTAMENTO_CLIENTE (
|
|
||||||
AGADIANTAMENTOCLIENTE_ID NUMBER(7) NOT NULL,
|
|
||||||
CLIENTE VARCHAR2(10) NOT NULL,
|
|
||||||
ESTABELECIMENTO VARCHAR2(4) NOT NULL,
|
|
||||||
CENTRORESULTADOS VARCHAR2(10),
|
|
||||||
CONTADESPREC VARCHAR2(10) NOT NULL,
|
|
||||||
CONTAFINANCEIRA VARCHAR2(4),
|
|
||||||
DATA DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGADIANTAMENTOCLIENTE_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_BAIXA_VENCTOCARTAO (
|
|
||||||
AGBAIXAVENCTOCARTAO_ID NUMBER(7) NOT NULL,
|
|
||||||
CONTARECEBER_ID VARCHAR2(11) NOT NULL,
|
|
||||||
SEQUENCIAL NUMBER(4) DEFAULT 1 NOT NULL ,
|
|
||||||
DATA DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
TAXA NUMBER(12,2) DEFAULT 0 NOT NULL ,
|
|
||||||
CONTAFINANCEIRA VARCHAR2(4),
|
|
||||||
HISTORICO VARCHAR2(80) NOT NULL,
|
|
||||||
CONTADESPRECTAXA VARCHAR2(10) NOT NULL,
|
|
||||||
EXPORTAAC NUMBER(7) NOT NULL,
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGBAIXAVENCTOCARTAO_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE INSTI_FINANCEIRA ADD (INTEGRACIONAG VARCHAR2(4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,79 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_CONTAS_RECEBER_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_SERVICOS_CTAS_RECEBER_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_VENCDIVCTAS_RECEBER_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_RATEIO_CTAS_RECEBER_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_VNCTCARTAOCTAS_RECEBER_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_CONTAS_PAGAR_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_VENCIMENTOS_CTAS_PAGAR_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_BAIXA_VENCTOCARTAO_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_ADIANTAMENTO_CLIENTE_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ESTADO ADD (CENTRORESULTADOSAG NUMBER(1))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
col_count integer;
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
select count(*)
|
|
||||||
into col_count from FORMA_PAGO
|
|
||||||
where FORMAPAGO_ID = 35;
|
|
||||||
|
|
||||||
if col_count = 0 then
|
|
||||||
execute immediate 'Insert into FORMA_PAGO (FORMAPAGO_ID,DESCPAGO,EQUIVALENCIA_ID,ACTIVO,FECMODIF,USUARIO_ID,INDOPERACION,CVEPAGO,IMPFISCAL,INDCONFERENCIAFISICACOMISSAO) values (''35'',''GERACAO OCD'',null,''1'',sysdate,''1'',null,''GO'',null,''0'')';
|
|
||||||
end if;
|
|
||||||
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,31 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA ADD INDENVIAEMAILCOMISSAO NUMBER(1,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA ADD EMAIL_PENDENCIA VARCHAR(50)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FECHAMENTO_CNTCORRENTE ADD INDEMAILENVIADO NUMBER(1,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'UPDATE FECHAMENTO_CNTCORRENTE SET INDEMAILENVIADO = 1';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE INSTI_FINANCEIRA ADD (CONTAFINANCEIRAAG VARCHAR2(4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO MOTIVO_CANCELACION(MOTIVOCANCELACION_ID,DESCMOTIVO,TIPOMOTIVO,ACTIVO,FECMODIF,USUARIO_ID,TXTRELATORIO) VALUES(99,''GERACAO OCD'',''B'',1,SYSDATE,1,''GERACAO OCD'')';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ESTACION ADD NUMPORTAPINPAD NUMBER(2,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,9 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''HABILITAR NOVO CLIENTE'',
|
|
||||||
''COM.RJCONSULTORES.VENTABOLETOS.WEB.UTILERIAS.MENU.ITEM.VENTA.CLINETE.HABILITARNOVOCLIENTE'',
|
|
||||||
''1'',to_date(''15/04/16'',''DD/MM/RR''),''1'')';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,8 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD HORARIOLIBERACAOVENDAPESSAGEM NUMBER(1,0) DEFAULT 1';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update punto_venta set INDBLOQCANCIMPPOSTERIOR = 0 where INDBLOQCANCIMPPOSTERIOR is null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table CONVENIO_DET ADD PORCOUTROS NUMBER(5,2)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,21 +0,0 @@
|
||||||
DECLARE
|
|
||||||
type namesarray IS VARRAY(13) OF VARCHAR2(20);
|
|
||||||
|
|
||||||
names namesarray;
|
|
||||||
total integer;
|
|
||||||
existe integer;
|
|
||||||
BEGIN
|
|
||||||
names := namesarray('OCA', 'VISA', 'MASTERCARD', 'AMERICAN EXPRESS', 'CABAL', 'CREDITOS DIRECTOS','ANDA', 'CREDITEL', 'PASS CARD', 'DINERS', 'CLUB DEL ESTE', 'CTC', 'ASI');
|
|
||||||
|
|
||||||
total := names.count;
|
|
||||||
|
|
||||||
FOR i in 1 .. total LOOP
|
|
||||||
select count(*) into existe from tarjeta_credito where DESCTARJETACREDITO = names(i);
|
|
||||||
if existe = 0 then
|
|
||||||
|
|
||||||
INSERT INTO TARJETA_CREDITO (TARJETACREDITO_ID,DESCTARJETACREDITO,CANTMAXSINTASA,CANMAXCONTASA,TASA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
VALUES (TARJETA_CREDITO_seq.nextval,names(i),1,1,1,1,sysdate,-1);
|
|
||||||
end if;
|
|
||||||
END LOOP;
|
|
||||||
END;
|
|
||||||
/
|
|
|
@ -1,13 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER MODIFY (CLIENTE VARCHAR2(14))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE MODIFY (CLIENTE NULL)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,9 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table ESQUEMA_CORRIDA ADD AUTOBUS_ID NUMBER(7,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''ADM > COMISSAO >> TIPO INFORMATIVO'',
|
|
||||||
''COM.RJCONSULTORES.ADMINISTRACION.GUI.COMISSAO.MENU.TIPOINFORMATIVO'',
|
|
||||||
''1'',to_date(''15/04/16'',''DD/MM/RR''),''1'')';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE TIPO_INFORMATIVO (
|
|
||||||
TIPOINFORMATIVO_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
DESCTIPO VARCHAR2(500 BYTE),
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
CONSTRAINT "PK_TIPOINFORMATIVO" PRIMARY KEY ("TIPOINFORMATIVO_ID"),
|
|
||||||
CONSTRAINT "FK_TIPOINFORMATIVO_USUARIO" FOREIGN KEY ("USUARIO_ID") REFERENCES USUARIO("USUARIO_ID")
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE TIPO_INFORMATIVO_SEQ';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD TIPOINFORMATIVOCOMISSAO_ID NUMBER(7,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,13 +0,0 @@
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
except_02275 exception;
|
|
||||||
|
|
||||||
pragma exception_init (dup_val_on_index , -01430);
|
|
||||||
pragma exception_init (except_02275 , -02275);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD CONSTRAINT FK_LOGCONFERENCIA_TIPOINFOR FOREIGN KEY (TIPOINFORMATIVOCOMISSAO_ID) REFERENCES TIPO_INFORMATIVO (TIPOINFORMATIVO_ID)';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_02275 then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CANCELACION ADD(PORCCAMBIOEMBARCADO NUMBER (5,2) DEFAULT 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table fiscal_ml2 add (indvendamanual NUMBER(1) DEFAULT 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table fiscal_r4 add (indvendamanual NUMBER(1) DEFAULT 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,57 +0,0 @@
|
||||||
/* Sequence */
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE CONFERENCIA_PENDENCIA_SEQ INCREMENT BY 1 MAXVALUE 9999999 MINVALUE 1 CACHE 20';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
/* Create */
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE CONFERENCIA_PENDENCIA (
|
|
||||||
CONFERENCIAPENDENCIA_ID NUMBER(7) NOT NULL,
|
|
||||||
DESCPENDENCIA VARCHAR2(50) NULL,
|
|
||||||
ACTIVO NUMBER(1) NULL,
|
|
||||||
FECMODIF DATE NULL,
|
|
||||||
USUARIO_ID NUMBER(7) NULL,
|
|
||||||
PRIMARY KEY (CONFERENCIAPENDENCIA_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
/* Alter table */
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD CONFERENCIAPENDENCIA_ID NUMBER(7) NULL';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
except_02275 exception;
|
|
||||||
|
|
||||||
pragma exception_init (dup_val_on_index , -01430);
|
|
||||||
pragma exception_init (except_02275 , -02275);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD CONSTRAINT FK_LOGCONFERENCIA_CONFPEN FOREIGN KEY (CONFERENCIAPENDENCIA_ID) REFERENCES CONFERENCIA_PENDENCIA (CONFERENCIAPENDENCIA_ID)';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_02275 then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
/* Insert */
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO CONFERENCIA_PENDENCIA VALUES(CONFERENCIA_PENDENCIA_SEQ.NEXTVAL, ''MOVIMENTO SEM BILHETE FISICO'', 1, SYSDATE, 1)';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,21 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'update fiscal_ml2 set indvendamanual = 1 where fiscalml2_id in (
|
|
||||||
select ml2.fiscalml2_id
|
|
||||||
from fiscal_ml2 ml2
|
|
||||||
join boleto b on b.boleto_id = ml2.boleto_id
|
|
||||||
where b.tipoventa_id = 3)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'update fiscal_r4 set indvendamanual = 1 where fiscalr4_id in (
|
|
||||||
select r4.fiscalr4_id
|
|
||||||
from fiscal_r4 r4
|
|
||||||
join boleto b on b.boleto_id = r4.boleto_id
|
|
||||||
where b.tipoventa_id = 3)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE PTOVTA_EMPRESA ADD INDIMPCOMPCARTAO NUMBER(1,0) DEFAULT 1';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table caja add CCF VARCHAR2(6 BYTE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table boleto add CCF VARCHAR2(6 BYTE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD IDADE_IDOSO NUMBER(2,0) DEFAULT 60 NOT NULL';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,23 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD INDMESMODIA NUMBER(1,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO CONFERENCIA_PENDENCIA VALUES (CONFERENCIA_PENDENCIA_SEQ.NEXTVAL,''ENTRADA DE CORRECAO'', 1, current_date, 1)';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO CONFERENCIA_PENDENCIA VALUES (CONFERENCIA_PENDENCIA_SEQ.NEXTVAL,''SAIDA DE CORRECAO'', 1, current_date, 1)';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,5 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''VDA > CAIXA >> CONSULTA DE BILHETES >> TROCA TITULARIDADE'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.CONSULTABOLETO.TROCATITULARIDADE'',''1'',to_date(''28-01-2015 17:15:17'',''DD-MM-YYYY HH24:MI:SS''),''1'')';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,8 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table corte_turno modify (corteturno_id number(10,0))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table punto_venta add (indusataxaconversao NUMBER(1) DEFAULT 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,16 +0,0 @@
|
||||||
declare
|
|
||||||
table_exists exception;
|
|
||||||
pragma exception_init (table_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE REGION_METROPOLITANA
|
|
||||||
(
|
|
||||||
REGIONMETROPOLITANA_ID NUMBER(7,0) NOT NULL ENABLE,
|
|
||||||
DESCREGION VARCHAR2(100),
|
|
||||||
ACTIVO NUMBER(1,0),
|
|
||||||
FECMODIF DATE,
|
|
||||||
USUARIO_ID NUMBER(7,0),
|
|
||||||
CONSTRAINT REGION_METROPOLITANA_PK PRIMARY KEY (REGIONMETROPOLITANA_ID)
|
|
||||||
ENABLE)';
|
|
||||||
exception when table_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE PARADA ADD (REGIONMETROPOLITANA_ID NUMBER(7,0))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table estacion add(indterminalmultiplo number(1,0) default 0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (NUMEROIDENTIFICACAO NUMBER(3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (ICMSIMMATRICIAL NUMBER(7,2))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,9 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE REGION_METROPOLITANA_SEQ
|
|
||||||
MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1
|
|
||||||
START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VNCTO_CARTAO_CTAS_RECEBER ADD (sequencial NUMBER(7) DEFAULT 1 NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,6 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM >> CATALOGOS > REGIAO METROPOLITANA'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.REGIONMETROPOLITANA'',1,SYSDATE,1)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,127 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add (INDICE_PEAJE2 NUMBER(7,3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2 = INDICE_PEAJE';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add (INDICE_PEAJE NUMBER(7,3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE = INDICE_PEAJE2';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2 = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE2';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add (INDICE_PEAJE2 NUMBER(7,3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2 = INDICEPEAJE';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICEPEAJE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add (INDICEPEAJE NUMBER(7,3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE = INDICE_PEAJE2';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2 = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICE_PEAJE2';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (CODIGOCONTABILMUNICIPAL NUMBER(15))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (CODIGOCONTABILESTADUAL NUMBER(15))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'INSERT INTO AIDF_ESPECIE (AIDFESP_ID, DECESPECIE, ACTIVO, FECMODIF, USUARIO_ID) VALUES (3, ''RMD'', 1, TIMESTAMP ''2016-11-25 16:45:00'', 1)';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA ADD (INDNAOPERMITECONFSEMMALOTE NUMBER(1,0) DEFAULT 0 NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,23 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (CLIENTECNPJCPF VARCHAR2(20))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (CLIENTEIDWS VARCHAR2(30))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (OBSERVACAO VARCHAR2(255))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE BOLETO ADD (RMD_ID NUMBER(15))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,37 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CONF_RESTRICAO_CANALVENTA ADD EMPRESA_ID NUMBER(7,0)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
except_02275 exception;
|
|
||||||
|
|
||||||
pragma exception_init (dup_val_on_index , -01430);
|
|
||||||
pragma exception_init (except_02275 , -02275);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CONF_RESTRICAO_CANALVENTA ADD CONSTRAINT FK_CONF_REST_CV_EMPRESA FOREIGN KEY (EMPRESA_ID) REFERENCES EMPRESA(EMPRESA_ID)';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_02275 then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CONF_RESTRICAO_CANALVENTA ADD FECINICIOVIGENCIA DATE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CONF_RESTRICAO_CANALVENTA ADD FECFINVIGENCIA DATE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,19 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE MOTIVO_CANCEL_VENDA_PACOTE_SEQ
|
|
||||||
MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1
|
|
||||||
START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE MOTIVO_CANCEL_VENDA_PACOTE
|
|
||||||
ADD (TIPOMOTIVOCANCEL VARCHAR2(20))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
|
@ -1,127 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add (INDICE_PEAJE2 NUMBER(7,4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2 = INDICE_PEAJE';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE add (INDICE_PEAJE NUMBER(7,4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE = INDICE_PEAJE2';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update CLASSE_INDICE_PEAJE set INDICE_PEAJE2 = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CLASSE_INDICE_PEAJE drop column INDICE_PEAJE2';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add (INDICE_PEAJE2 NUMBER(7,4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2 = INDICEPEAJE';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICEPEAJE';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE add (INDICEPEAJE NUMBER(7,4))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICEPEAJE = INDICE_PEAJE2';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate 'update ORGAO_CONCEDENTE set INDICE_PEAJE2 = null';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE drop column INDICE_PEAJE2';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (ICMSMATRICIAL NUMBER(7,2))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE MOTIVO_CANCEL_VENDA_PACOTE ADD (PORCMULTA NUMBER(5,2) DEFAULT 0 NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE usuario ADD (DESCMAC VARCHAR2(25) )';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE TARIFA_VENDA_PACOTE ADD (USUARIO_CANCELAMENTO_ID NUMBER(7,0), MOTIVOCANCELVENDAPACOTE_ID NUMBER(7,0), INDCANCELADO NUMBER(1,0), DATACANCELAMENTO DATE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,33 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_DEV_ADIANTAMENTO_CLIENTE (
|
|
||||||
AGDEVADIANTAMENTOCLIENTE_ID NUMBER(7) NOT NULL,
|
|
||||||
CLIENTE VARCHAR2(10),
|
|
||||||
ESTABELECIMENTO VARCHAR2(4) NOT NULL,
|
|
||||||
CENTRORESULTADOS VARCHAR2(10),
|
|
||||||
CONTADESPREC VARCHAR2(10) NOT NULL,
|
|
||||||
CONTAFINANCEIRA VARCHAR2(4),
|
|
||||||
DATA DATE NOT NULL,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(500),
|
|
||||||
CLIENTECNPJCPF VARCHAR2(20),
|
|
||||||
CLIENTEIDWS VARCHAR2(30),
|
|
||||||
OBSERVACAO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGDEVADIANTAMENTOCLIENTE_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_DEVADIANTAMENTO_CLIENTE_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,29 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'CREATE TABLE AG_DEPOSITOS_DIVERSOS (
|
|
||||||
AGDEPOSITOSDIVERSOS_ID NUMBER(7) NOT NULL,
|
|
||||||
DATADEPOSITO DATE NOT NULL,
|
|
||||||
CREIDWS VARCHAR2(30) NOT NULL,
|
|
||||||
IDWS VARCHAR2(30),
|
|
||||||
REFERENCIABANCO VARCHAR2(200),
|
|
||||||
SEQUENCIA NUMBER(7) DEFAULT 1,
|
|
||||||
SEQUENCIAVENCIMENTO NUMBER(7) DEFAULT 1,
|
|
||||||
VALOR NUMBER(12,2) NOT NULL,
|
|
||||||
INDINTEGRADO NUMBER(1) DEFAULT 0 NOT NULL,
|
|
||||||
FECINTEGRACION DATE,
|
|
||||||
MOTIVONAOINTEGRADO VARCHAR2(255),
|
|
||||||
PRIMARY KEY (AGDEPOSITOSDIVERSOS_ID)
|
|
||||||
)';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -00955);
|
|
||||||
begin
|
|
||||||
execute immediate 'CREATE SEQUENCE "AG_DEPOSITOS_DIVERSOS_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER ADD (TIPOCONTARECEBER NUMBER(1) DEFAULT 1)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,13 +0,0 @@
|
||||||
declare
|
|
||||||
dup_val_on_index exception;
|
|
||||||
except_01451 exception;
|
|
||||||
|
|
||||||
pragma exception_init (dup_val_on_index , -01430);
|
|
||||||
pragma exception_init (except_01451 , -01451);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER MODIFY (NUMBOLETO NULL)';
|
|
||||||
|
|
||||||
exception
|
|
||||||
when dup_val_on_index then null;
|
|
||||||
when except_01451 then null;
|
|
||||||
end;
|
|
|
@ -1,5 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''VDA > ESTOQUE DE PASSAGENS >> TROCA DE ESTOQUE'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUTROCAFOLIO'',''1'',to_date(''02-12-2016 14:59:00'',''DD-MM-YYYY HH24:MI:SS''),''1'')';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEV_ADIANTAMENTO_CLIENTE ADD (AGCONTASRECEBER_ID NUMBER(7))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,175 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_BAIXA_VENCTOCARTAO ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_BAIXA_VENCTOCARTAO ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEV_ADIANTAMENTO_CLIENTE ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEV_ADIANTAMENTO_CLIENTE ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_RATEIO_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_RATEIO_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_SERVICOS_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_SERVICOS_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VENCIMENTOS_CTAS_PAGAR ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VENCIMENTOS_CTAS_PAGAR ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VNCTO_CARTAO_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_VNCTO_CARTAO_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,23 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (BANCO VARCHAR2(3))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (AGENCIA VARCHAR2(50))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (CONTACORRENTE VARCHAR2(50))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,6 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM >> CONFIG COMERCIAL > MOTIVO DO CANCELAMENTO VENDA PACOTE'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.MOTIVOSDELACANCELVENDAPACOTE'',1,SYSDATE,1)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,6 +0,0 @@
|
||||||
declare
|
|
||||||
begin
|
|
||||||
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
|
|
||||||
values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > CATALOGOS >> EMPRESA >> RESTRINGE VENDA SE RED. Z NAO EMITIDA'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.EMPRESA.RESTRIGEVENDAREDUCAOZ'',1,SYSDATE,1)';
|
|
||||||
exception when others then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table consumo_boleto modify (CORTETURNO_ID number(10,0))';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,8 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table boleto modify NUMASIENTOVINCULADO varchar(12)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
declare
|
|
||||||
ja_existe exception;
|
|
||||||
pragma exception_init (ja_existe , -00001);
|
|
||||||
begin
|
|
||||||
execute immediate
|
|
||||||
'insert into constante values (
|
|
||||||
constante_seq.nextval,
|
|
||||||
''URL_WS_AG'',
|
|
||||||
''URL_WS_AG'',
|
|
||||||
1,
|
|
||||||
''http://177.22.36.181:8081/cgi-bin/AGWS.exe/wsdl/IAG'',
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
sysdate,
|
|
||||||
1)';
|
|
||||||
exception when ja_existe then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE FORMA_PAGO ADD (TIPO_PAGO NUMBER(2,0))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,15 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CAJA ADD (FECHORVENTA_H DATE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD (FECHORVTA_H DATE)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'alter table EMBARCADA_SINCRONISMO add NUMDIV NUMBER(11)';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
|
@ -1,7 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CAJA_DET_PAGO ADD (OCD_ID NUMBER(15,0), NOTACREDITOVENDAPACOTE_ID NUMBER(7,0))';
|
|
||||||
exception when object_exists then null;
|
|
||||||
end;
|
|
|
@ -1,8 +0,0 @@
|
||||||
declare
|
|
||||||
column_exists exception;
|
|
||||||
pragma exception_init (column_exists , -01430);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE CATEGORIA MODIFY (CVECATEGORIA VARCHAR2(3 BYTE) )';
|
|
||||||
exception when column_exists then null;
|
|
||||||
end;
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue