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

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


 EXEC P_ALTERPK 'PK_TCCIT_EDUFULL_DETAIL', 'T_TCCIT_EDUFULL_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_EDUFULL_DETAIL') CREATE INDEX IDX_TCCIT_EDUFULL_DETAIL ON T_TCCIT_EDUFULL_DETAIL ( FORGID ,FSKSSQQ ,FSKSSQZ ,FRULEID ,FITEMNUMBER );


 EXEC P_ALTERPK 'PK_TCCIT_EDUFULL_SUM', 'T_TCCIT_EDUFULL_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_EDULIMIT_TZ_DET', 'T_TCCIT_EDULIMIT_TZ_DET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_EDULIMIT_TZ_DET') CREATE INDEX IDX_TCCIT_EDULIMIT_TZ_DET ON T_TCCIT_EDULIMIT_TZ_DET ( FORGID ,FSKSSQQ ,FSKSSQZ ,FRULEID ,FITEMNUMBER );


 EXEC P_ALTERPK 'PK_TCCIT_QT_SALARY_DET', 'T_TCCIT_QT_SALARY_DET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QT_SALARY_DET') CREATE INDEX IDX_TCCIT_QT_SALARY_DET ON T_TCCIT_QT_SALARY_DET ( FORGID ,FSKSSQQ ,FSKSSQZ ,FRULEID ,FITEMNUMBER );


 EXEC P_ALTERPK 'PK_TCCIT_QT_SALARY_SUM', 'T_TCCIT_QT_SALARY_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SMALL_SUM_ENTRY', 'T_TCCIT_SMALL_SUM_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SMALL_SUMMARY', 'T_TCCIT_SMALL_SUMMARY', 'FID', '1';

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



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