/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_APITUDEINFOSBB', 'T_TCCIT_APITUDEINFOSBB', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_POLICY_FHSBB', 'T_TCCIT_POLICY_FHSBB', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_POLICY_ORGSSBB', 'T_TCCIT_POLICY_ORGSSBB', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_POLICYSBB', 'T_TCCIT_POLICYSBB', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_POLICYSBB') CREATE INDEX IDX_TCCIT_POLICYSBB ON T_TCCIT_POLICYSBB ( FORGID ,FSTARTDATE ,FENDDATE );


 EXEC P_ALTERPK 'PK_TCCIT_TECHTRANS_ACCDET', 'T_TCCIT_TECHTRANS_ACCDET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_TECHTRANS_ACCDET') CREATE INDEX IDX_TCCIT_TECHTRANS_ACCDET ON T_TCCIT_TECHTRANS_ACCDET ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_TECHTRANS_SUMMARY', 'T_TCCIT_TECHTRANS_SUMMARY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_TECHTRANS_SUMMARY') CREATE INDEX IDX_TCCIT_TECHTRANS_SUMMARY ON T_TCCIT_TECHTRANS_SUMMARY ( FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_TECHTRANS_TITLE', 'T_TCCIT_TECHTRANS_TITLE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_TECHTRANS_TITLE') CREATE INDEX IDX_TCCIT_TECHTRANS_TITLE ON T_TCCIT_TECHTRANS_TITLE ( FORGID ,FSKSSQQ ,FSKSSQZ );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
