/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_SALE_FINISH_E', 'T_TCCIT_SALE_FINISH_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_SALE_FINISH_E' AND KSQL_INDNAME = 'IDX_TCCIT_SALE_FINISH_E_FK') CREATE INDEX IDX_TCCIT_SALE_FINISH_E_FK ON T_TCCIT_SALE_FINISH_E ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_SALE_NO_FINISH_E', 'T_TCCIT_SALE_NO_FINISH_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_SALE_NO_FINISH_E' AND KSQL_INDNAME = 'IDX_TCCIT_SALE_NO_FINISH_E_FK') CREATE INDEX IDX_TCCIT_SALE_NO_FINISH_E_FK ON T_TCCIT_SALE_NO_FINISH_E ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_SPEC_BUS_NSTZ', 'T_TCCIT_SPEC_BUS_NSTZ', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_SPEC_BUS_NSTZ' AND KSQL_INDNAME = 'IDX_TCCIT_SPEC_BUS_NSTZ_FK') CREATE INDEX IDX_TCCIT_SPEC_BUS_NSTZ_FK ON T_TCCIT_SPEC_BUS_NSTZ ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_SPEC_BUS_REAL_DEV', 'T_TCCIT_SPEC_BUS_REAL_DEV', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_SPEC_BUS_REAL_DEV' AND KSQL_INDNAME = 'IDX_T_TCCIT_SBRD_FBILLNO') CREATE INDEX IDX_T_TCCIT_SBRD_FBILLNO ON T_TCCIT_SPEC_BUS_REAL_DEV ( FBILLNO );



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