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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSG_PROMOTE_CONFIG_USER') CREATE INDEX IDX_MSG_PROMOTE_CONFIG_USER ON T_MSG_PROMOTE_CONFIG ( FUSERID );


 EXEC P_ALTERPK 'PK_T_MSG_PROMOTE', 'T_MSG_PROMOTE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSG_PROMOTE_FMSGID') CREATE INDEX IDX_MSG_PROMOTE_FMSGID ON T_MSG_PROMOTE ( FMESSAGEID );



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