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

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


 EXEC P_ALTERPK 'PK_TCCIT_SALARY_SUMMARY', 'T_TCCIT_SALARY_SUMMARY', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_BEFORETAX_DETAIL', 'T_TCCIT_BEFORETAX_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_BEFORETAX_DETAIL') CREATE INDEX IDX_TCCIT_BEFORETAX_DETAIL ON T_TCCIT_BEFORETAX_DETAIL ( FTAXACCOUNTSERIALNO ,FORGID ,FSKSSQQ ,FSKSSQZ ,FITEMNUMBER );


 EXEC P_ALTERPK 'PK_TCCIT_PERIOD_TZ_DETAIL', 'T_TCCIT_PERIOD_TZ_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_PERIOD_TZ_DETAIL') CREATE INDEX IDX_TCCIT_PERIOD_TZ_DETAIL ON T_TCCIT_PERIOD_TZ_DETAIL ( FTAXACCOUNTSERIALNO ,FORGID ,FSKSSQQ ,FSKSSQZ ,FITEMNUMBER );


 EXEC P_ALTERPK 'PK_TCCIT_SALARY_TZ_DETAIL', 'T_TCCIT_SALARY_TZ_DETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_SALARY_TZ_DETAIL') CREATE INDEX IDX_TCCIT_SALARY_TZ_DETAIL ON T_TCCIT_SALARY_TZ_DETAIL ( FTAXACCOUNTSERIALNO ,FORGID ,FSKSSQQ ,FSKSSQZ ,FITEMNUMBER );



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