/*==============================================================*/ /* Database name: FITBANK PHYSICAL DATA MODEL */ /* DBMS name: IBM DB2 UDB 5.x Common Server */ /* 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 -- fitbank201061004.log /*==============================================================*/ /* Table: TGARANTIADOCUMENTOSENTREGADOS */ /*==============================================================*/ alter table TGARANTIADOCUMENTOSENTREGADOS add FINGRESOCUSTODIO DATE; alter table TGARANTIADOCUMENTOSENTREGADOS add CUSUARIO_INGRESOCUSTODIO VARCHAR(19); alter table TGARANTIADOCUMENTOSENTREGADOS add FDEVOLUCION DATE; alter table TGARANTIADOCUMENTOSENTREGADOS add CUSUARIO_DEVOLUCION VARCHAR(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);