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

 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATEINFO', 'T_FPM_TEMPLATEINFO', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FPM_TEMPLATEINFO') CREATE INDEX IDX_T_FPM_TEMPLATEINFO ON T_FPM_TEMPLATEINFO ( FNUMBER );

 EXEC P_ALTERPK 'PK_T_FPM_TEMPLATEINFO_L', 'T_FPM_TEMPLATEINFO_L', 'FPKID', '1';

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

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