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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FCS_SUSBECTBILL_H') CREATE INDEX IDX_FCS_SUSBECTBILL_H ON T_FCS_SUSPECTBILL_H ( FCONFIRM ,FBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TIME_FCS_SUSBECTBILL_H') CREATE INDEX IDX_TIME_FCS_SUSBECTBILL_H ON T_FCS_SUSPECTBILL_H ( FCREATETIME );


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTBILL_H_L', 'T_FCS_SUSPECTBILL_H_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTBILL_S_H', 'T_FCS_SUSPECTBILL_S_H', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FCS_SUSPECTBILL_S_H_SUS') CREATE INDEX IDX_FCS_SUSPECTBILL_S_H_SUS ON T_FCS_SUSPECTBILL_S_H ( FSUSPECTBILLID );


 EXEC P_ALTERPK 'PK_T_FCS_SUSPECTBILL_S_H_L', 'T_FCS_SUSPECTBILL_S_H_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FCS_SUSPECTBILL_S_H_L') CREATE INDEX IDX_FCS_SUSPECTBILL_S_H_L ON T_FCS_SUSPECTBILL_S_H_L ( FENTRYID );



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