/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATE_SUBJECTME', 'T_FPM_TEMPLATE_SUBJECTME', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATEUSER', 'T_FPM_TEMPLATEUSER', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATE_LAYOUT', 'T_FPM_TEMPLATE_LAYOUT', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATE_LAYOUTMEM', 'T_FPM_TEMPLATE_LAYOUTMEM', 'FPKID', '1';

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



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