/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_CHKDISPLAYSETTING', 'T_BCM_CHKDISPLAYSETTING', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHKDISSET_DIM') CREATE INDEX IDX_BCM_CHKDISSET_DIM ON T_BCM_CHKDISPLAYSETTING ( FSELECTDIMS );


 EXEC P_ALTERPK 'PK_T_BCM_CHKMEMBRANGE', 'T_BCM_CHKMEMBRANGE', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHKMEMB_FID') CREATE INDEX IDX_BCM_CHKMEMB_FID ON T_BCM_CHKMEMBRANGE ( FID );


 EXEC P_ALTERPK 'PK_T_BCM_CHKREPORT', 'T_BCM_CHKREPORT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHKREPORT_FORMULAID') CREATE INDEX IDX_BCM_CHKREPORT_FORMULAID ON T_BCM_CHKREPORT ( FCHKFORMULAID );


 EXEC P_ALTERPK 'PK_T_BCM_CHKFORMULASETTING', 'T_BCM_CHKFORMULASETTING', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHKFORMULA_MODEL') CREATE INDEX IDX_BCM_CHKFORMULA_MODEL ON T_BCM_CHKFORMULASETTING ( FMODELID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BCM_constraint.sql **/
