/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_TPL_REPORTTYPEENTRY', 'T_FPM_TPL_REPORTTYPEENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TPL_METRIC', 'T_FPM_TPL_METRIC', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TPLBAK_RETYPEENTRY', 'T_FPM_TPLBAK_RETYPEENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TPLBAK_METRIC', 'T_FPM_TPLBAK_METRIC', 'FENTRYID', '1';

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



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