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

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


EXEC P_ALTERPK 'PK_T_FPM_REPAIR_DETAIL', 'T_FPM_REPAIR_DETAIL', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_REPAIR_DETAIL_RECORDID') CREATE INDEX IDX_FPM_REPAIR_DETAIL_RECORDID ON T_FPM_REPAIR_DETAIL ( FREPAIRID );



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