/**Begin D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_APPROVEDPLANQUOTA', 'T_FPM_APPROVEDPLANQUOTA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_APPROVEDPLANQUOTA') CREATE INDEX IDX_FPM_APPROVEDPLANQUOTA ON T_FPM_APPROVEDPLANQUOTA ( FSYSTEMID );


 EXEC P_ALTERPK 'PK_T_FPM_APPROVEDPLANMATION', 'T_FPM_APPROVEDPLANMATION', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_APPROVEDPLANDETAILS', 'T_FPM_APPROVEDPLANDETAILS', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_APPROVEDPLANDETAILS') CREATE INDEX IDX_FPM_APPROVEDPLANDETAILS ON T_FPM_APPROVEDPLANDETAILS ( FENTRYID );



/**End D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
