/**Begin D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTLOG', 'T_FCS_SUSPECTLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FCS_SUSPECTLOG') CREATE INDEX IDX_T_FCS_SUSPECTLOG ON T_FCS_SUSPECTLOG ( FREPEATSETID );


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTLOG_ENTRY', 'T_FCS_SUSPECTLOG_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTLOG_ENTRY_H', 'T_FCS_SUSPECTLOG_ENTRY_H', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTLOG_H', 'T_FCS_SUSPECTLOG_H', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FCS_SUSPECTLOG_H') CREATE INDEX IDX_FCS_SUSPECTLOG_H ON T_FCS_SUSPECTLOG_H ( FREPEATSETID );



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