/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_TAX_ACCE_DIFF', 'T_TCCIT_TAX_ACCE_DIFF', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_TAX_ACCE_DIFF') CREATE  CLUSTERED INDEX IDX_TCCIT_TAX_ACCE_DIFF ON T_TCCIT_TAX_ACCE_DIFF ( FORGID );


 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATE_ACCOUN', 'T_TCCIT_DEPRECIATE_ACCOUN', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATE_ACCOUN_FK') CREATE  CLUSTERED INDEX IDX_TCCIT_DEPRECIATE_ACCOUN_FK ON T_TCCIT_DEPRECIATE_ACCOUN ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATE_NORMAL', 'T_TCCIT_DEPRECIATE_NORMAL', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATE_NORMAL_FK') CREATE  CLUSTERED INDEX IDX_TCCIT_DEPRECIATE_NORMAL_FK ON T_TCCIT_DEPRECIATE_NORMAL ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATE_QUICK', 'T_TCCIT_DEPRECIATE_QUICK', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATE_QUICK_FK') CREATE  CLUSTERED INDEX IDX_TCCIT_DEPRECIATE_QUICK_FK ON T_TCCIT_DEPRECIATE_QUICK ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATE_RULE', 'T_TCCIT_DEPRECIATE_RULE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATE_RULE') CREATE  CLUSTERED INDEX IDX_TCCIT_DEPRECIATE_RULE ON T_TCCIT_DEPRECIATE_RULE ( FORGID );


 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATE_RULE_L', 'T_TCCIT_DEPRECIATE_RULE_L', 'FPKID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATE_RULE_L_0') CREATE  CLUSTERED INDEX IDX_TCCIT_DEPRECIATE_RULE_L_0 ON T_TCCIT_DEPRECIATE_RULE_L ( FID ,FLOCALEID );



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