/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_MSG_ADMINORG', 'T_MSG_ADMINORG', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_MSG_USER', 'T_MSG_USER', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_MSG_USERTYPE', 'T_MSG_USERTYPE', 'FPKID', '1';

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



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