/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_CALC_SUMMARY_DET', 'T_TCCIT_CALC_SUMMARY_DET', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_ADVERT_DETAIL', 'T_TCCIT_ADVERT_DETAIL', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_ADVERT_SCRIPT', 'T_TCCIT_ADVERT_SCRIPT', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_YWZDF_TZ_DETAIL', 'T_TCCIT_YWZDF_TZ_DETAIL', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_YWZDF_TZ_SUMMARY', 'T_TCCIT_YWZDF_TZ_SUMMARY', 'FID', '1';

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



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