/**Begin D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
EXEC P_ALTERPK 'PK_T_FPM_CONTROLHOLDINFO', 'T_FPM_CONTROLHOLDINFO', 'FENTRYID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_WAITCONSUMERECORD', 'T_FPM_WAITCONSUMERECORD', 'FENTRYID', '1';

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



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