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

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


 EXEC P_ALTERPK 'PK_TCCIT_DEV_JJKC_SUM', 'T_TCCIT_DEV_JJKC_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_YH_TAXCREDIT_DATA', 'T_TCCIT_YH_TAXCREDIT_DATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_YH_TAXCREDIT_DATA') CREATE INDEX IDX_TCCIT_YH_TAXCREDIT_DATA ON T_TCCIT_YH_TAXCREDIT_DATA ( FORGID );


 EXEC P_ALTERPK 'PK_TCCIT_YH_TAXCREDIT_DET', 'T_TCCIT_YH_TAXCREDIT_DET', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_YH_TAXCREDIT_SUM', 'T_TCCIT_YH_TAXCREDIT_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_JMYHHZ_SUMMARY', 'T_TCCIT_JMYHHZ_SUMMARY', 'FID', '1';

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



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