/*==============================================================*/ /* Database name: Database */ /* DBMS name: ORACLE Version 10g */ /* Created on: 26/08/2009 13:50:21 PM */ /*==============================================================*/ -- SQL script that update fitBank squema -- To run this script from the SQL Plus, perform the following steps: -- 1. connect to the database -- 2. set define character to ! -- "set define !" -- 3. issue the command "@ " -- where represents the name of this script spool fitbank201061004.log /*==============================================================*/ /* Table: TGARANTIADOCUMENTOSENTREGADOS */ /*==============================================================*/ alter table TGARANTIADOCUMENTOSENTREGADOS add ( FINGRESOCUSTODIO DATE, CUSUARIO_INGRESOCUSTODIO VARCHAR2(19), FDEVOLUCION DATE, CUSUARIO_DEVOLUCION VARCHAR2(19)); comment on column TGARANTIADOCUMENTOSENTREGADOS.CUSUARIO_MODIFICACION is 'Codigo de usuario que modifica'; comment on column TGARANTIADOCUMENTOSENTREGADOS.FINGRESOCUSTODIO is 'Fecha de ingreso del documento a custodia'; comment on column TGARANTIADOCUMENTOSENTREGADOS.CUSUARIO_INGRESOCUSTODIO is 'Codigo del usuario que registra el ingreso del documento a custodia'; comment on column TGARANTIADOCUMENTOSENTREGADOS.FDEVOLUCION is 'Fecha en la que se realiza la devolucion del documento de la garantia'; comment on column TGARANTIADOCUMENTOSENTREGADOS.CUSUARIO_DEVOLUCION is 'Codigo del usuario que realiza la devolucion del documento de la garantia'; alter table TGARANTIADOCUMENTOSENTREGADOS add constraint FKCTAGARUSUCUS foreign key (CUSUARIO_INGRESOCUSTODIO) references TUSUARIOSID (CUSUARIO); alter table TGARANTIADOCUMENTOSENTREGADOS add constraint FKCTAGARUSUDEV foreign key (CUSUARIO_DEVOLUCION) references TUSUARIOSID (CUSUARIO); spool off