/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_SEC_BIZPARTNERUSER_C', 'T_SEC_BIZPARTNERUSER_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SEC_BIZPARTNERUSER_C_CT') CREATE INDEX IDX_SEC_BIZPARTNERUSER_C_CT ON T_SEC_BIZPARTNERUSER_C ( FCUSTOMERINFOID );


 EXEC P_ALTERPK 'PK_SEC_USER_D', 'T_SEC_USER_D', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SEC_USER_D_TYPE') CREATE INDEX IDX_SEC_USER_D_TYPE ON T_SEC_USER_D ( FDRPUSERTYPE );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
