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

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


 EXEC P_ALTERPK 'PK_TCCIT_DG_B105038_DET', 'T_TCCIT_DG_B105038_DET', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_DG_B105038_SUM', 'T_TCCIT_DG_B105038_SUM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TCCIT_DG_B105038_SUM') CREATE INDEX IDX_T_TCCIT_DG_B105038_SUM ON T_TCCIT_DG_B105038_SUM ( FITEMNO ,FITEMNUMBER ,FORGID ,FSKSSQQ ,FSKSSQZ );


 EXEC P_ALTERPK 'PK_TCCIT_DG_B105036_SUM', 'T_TCCIT_DG_B105036_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SOFT_IC_QTZB', 'T_TCCIT_SOFT_IC_QTZB', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SOFT_IC_QYYH', 'T_TCCIT_SOFT_IC_QYYH', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_SOFT_IC_QYYH') CREATE INDEX IDX_TCCIT_SOFT_IC_QYYH ON T_TCCIT_SOFT_IC_QYYH ( FORGID ,FYEAR );



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