dbUpgrade7_0028-to-7_0029_db2zOS.sql 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2015
  6. --
  7. -- US Government Users Restricted Rights - Use, duplication or disclosure
  8. -- restricted by GSA ADP Schedule Contract with IBM Corp.
  9. alter table CMOBJECTS alter column CLASSID set data type integer;
  10. alter table CMOBJPROPS25 alter column DEPLOYOBJCLASSID set data type integer;
  11. alter table CMSIZEINFO alter column CLASSID set data type integer;
  12. alter table CMSIZEINFO alter column TOTALFORCLASSID set data type integer;
  13. drop table CMCLASSES;
  14. create table CMCLASSES (
  15. CLASSID integer not null,
  16. NAME varchar(50) not null,
  17. USAGE smallint,
  18. DEF blob(100K),
  19. constraint PK_CMCLASSES primary key(CLASSID)
  20. ) IN CMSCRIPT_CREATE_IN;
  21. CREATE UNIQUE INDEX PK_CMCLASSES ON CMCLASSES (CLASSID) USING STOGROUP CMSCRIPT_STOGROUP;
  22. CREATE AUXILIARY TABLE CMATB094
  23. IN CMSCRIPT_DATABASE.CMSCRIPT_CS_IDCML094
  24. STORES CMCLASSES
  25. COLUMN DEF;
  26. CREATE UNIQUE INDEX CMIDX094 ON CMATB094 USING STOGROUP CMSCRIPT_STOGROUP;