/*==============================================================*/ /* Database name: Database */ /* DBMS name: ORACLE Version 10g */ /* Created on: 04/02/2010 17:46:17 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 fitbank201063009.log /*==============================================================*/ /* Table: TIMPRIMIRDOCUMENTOS */ /*==============================================================*/ alter table TIMPRIMIRDOCUMENTOS drop column CPROCESOBASE; alter table TIMPRIMIRDOCUMENTOS drop column VERSIONPROCESO; alter table TIMPRIMIRDOCUMENTOS add CFORMATOREPORTE VARCHAR2(30); comment on column TIMPRIMIRDOCUMENTOS.CFORMATOREPORTE is 'Codigo del formato del reporte jasper'; alter table TIMPRIMIRDOCUMENTOS add constraint FKIMPDOCFORMREP foreign key (CPERSONA_COMPANIA, CFORMATOREPORTE) references TFORMATOREPORTEID (CPERSONA_COMPANIA, CFORMATOREPORTE); spool off