/**Begin D:\software\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_AUXILIARY_FIELDS', 'T_FPM_AUXILIARY_FIELDS', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_AUXILIARY_FIELDS_L', 'T_FPM_AUXILIARY_FIELDS_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_REPORT_AUXILIARY', 'T_FPM_REPORT_AUXILIARY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_ADJUST_AUX', 'T_FPM_ADJUST_AUX', 'FENTRYID', '1';

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



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