dbUpgrade7_0028-to-7_0029_mssqlserver.sql 976 B

12345678910111213141516171819202122232425262728293031323334353637
  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. drop index IDX_CLASS on CMOBJECTS
  10. drop index IDX_CLASS1 on CMOBJECTS
  11. alter table CMOBJECTS alter column CLASSID int not null
  12. create index IDX_CLASS on CMOBJECTS(CLASSID)
  13. create index IDX_CLASS1 on CMOBJECTS(CMID, CLASSID)
  14. alter table CMCLASSES drop constraint PK_CMCLASSES
  15. alter table CMCLASSES alter column CLASSID int not null
  16. alter table CMCLASSES add constraint PK_CMCLASSES primary key(CLASSID)
  17. alter table CMOBJPROPS25 alter column DEPLOYOBJCLASSID int null
  18. alter table CMSIZEINFO drop constraint PK_CMSIZEINFO
  19. alter table CMSIZEINFO alter column CLASSID int not null
  20. alter table CMSIZEINFO alter column TOTALFORCLASSID int not null
  21. alter table CMSIZEINFO add constraint PK_CMSIZEINFO primary key (STOREID, TOTALFORCLASSID)