/**Begin D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_LIC_STANDDEVCONFIG', 'T_LIC_STANDDEVCONFIG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LIC_STDDEVCONFIG_APPID') CREATE INDEX IDX_LIC_STDDEVCONFIG_APPID ON T_LIC_STANDDEVCONFIG ( FBIZAPPID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LIC_STDDEVCONFIG_ENTID') CREATE INDEX IDX_LIC_STDDEVCONFIG_ENTID ON T_LIC_STANDDEVCONFIG ( FENTITYTYPEID );

 EXEC P_ALTERPK 'PK_T_LIC_USERLICENSEGROUPBAK', 'T_LIC_USERLICENSEGROUPBAK', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_LIC_USERLICGROUPBAK_UG') CREATE INDEX IDX_T_LIC_USERLICGROUPBAK_UG ON T_LIC_USERLICENSEGROUPBAK ( FUSERID ,FGROUPID );

/**End D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
