fixes bug #8485
fixes bug #8465 fixes bug #8466 fixes bug #8456 fixes bug #8458 fixes bug #8389 fixes bug #8396 fixes bug #8404 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64501 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
50a4f0b39f
commit
4cc5ce60ea
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
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;
|
|
@ -0,0 +1,24 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE TABLE OCD_DATOS_PAGAMENTO (
|
||||
OCDDATOSPAGAMENTO_ID NUMBER(7) NOT NULL,
|
||||
OCD_ID NUMBER(15) NULL,
|
||||
NOTACREDITOVENDAPACOTE_ID NUMBER(7) NULL,
|
||||
TITULARCUENTA VARCHAR2(50) NULL,
|
||||
IDENTIFICACION VARCHAR2(20) NULL,
|
||||
BANCO VARCHAR2(20) NULL,
|
||||
CUENTABANCO VARCHAR2(20) NULL,
|
||||
AGENCIA VARCHAR2(10) NULL,
|
||||
EMAIL VARCHAR2(50) NULL,
|
||||
TELEFONO VARCHAR2(14) NULL,
|
||||
ACTIVO NUMBER(1) NULL,
|
||||
FECMODIF DATE NULL,
|
||||
USUARIO_ID NUMBER(7) NULL,
|
||||
PRIMARY KEY (OCDDATOSPAGAMENTO_ID),
|
||||
FOREIGN KEY (OCD_ID) REFERENCES OCD,
|
||||
FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID) REFERENCES NOTA_CREDITO_VENDA_PACOTE
|
||||
)';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE SEQUENCE OCD_DATOS_PAGAMENTO_SEQ INCREMENT BY 1 MAXVALUE 9999999 MINVALUE 1 CACHE 20';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE OCD ADD (SALDO_PAGAR NUMBER(7,2))';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE NOTA_CREDITO_VENDA_PACOTE ADD (SALDO_PAGAR NUMBER(7,2) DEFAULT 1)';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE NOTA_CREDITO_VENDA_PACOTE ADD
|
||||
(
|
||||
PUNTOVENTA_ID NUMBER(7,0),
|
||||
PUNTOVENTAPAGAMENTO_ID NUMBER(7,0),
|
||||
USUARIOPAGAMENTO_ID NUMBER(7,0),
|
||||
DATANOTACREDITO DATE
|
||||
)';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE NOTA_CREDITO_VENDA_PACOTE ADD CONSTRAINT FK_PUNTOVENTA_NC FOREIGN KEY (PUNTOVENTA_ID) REFERENCES PUNTO_VENTA (PUNTOVENTA_ID)';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE NOTA_CREDITO_VENDA_PACOTE ADD CONSTRAINT FK_PUNTOVENTA_NC_PAG FOREIGN KEY (PUNTOVENTAPAGAMENTO_ID) REFERENCES PUNTO_VENTA (PUNTOVENTA_ID)';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE NOTA_CREDITO_VENDA_PACOTE ADD CONSTRAINT FK_USUARIO_NC_PAG FOREIGN KEY (USUARIOPAGAMENTO_ID) REFERENCES USUARIO (USUARIO_ID)';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue