/**Begin C:\Users\rd_zhixiong_w\Downloads\PDM_UPGRADE\PDM1\TM_constraint.sql **/
 EXEC P_ALTERPK 'PK_TM_LIFECYCLEAPPLY', 'T_TM_LIFECYCLEAPPLY', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TM_LIFECYCLEAPPLY') CREATE  CLUSTERED INDEX IDX_TM_LIFECYCLEAPPLY ON T_TM_LIFECYCLEAPPLY ( FORGID );


 EXEC P_ALTERPK 'PK_TM_LIFECYCLEAPPLY_ENTRY', 'T_TM_LIFECYCLEAPPLY_ENTRY', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TM_LIFECYCLEAPPLY_ENTRY') CREATE  CLUSTERED INDEX IDX_TM_LIFECYCLEAPPLY_ENTRY ON T_TM_LIFECYCLEAPPLY_ENTRY ( FID );


/**End C:\Users\rd_zhixiong_w\Downloads\PDM_UPGRADE\PDM1\TM_constraint.sql **/
