/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_MSPLAN_BATCHTASK_ENTRY', 'T_MSPLAN_BATCHTASK_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_MSPLAN_BATCHTASK_LOG', 'T_MSPLAN_BATCHTASK_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_BATCHTASK_LOG_FID') CREATE INDEX IDX_MSPLAN_BATCHTASK_LOG_FID ON T_MSPLAN_BATCHTASK_LOG ( FSTATUS );



/**End D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
