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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_MBYQKS_ACC') CREATE INDEX IDX_TCCIT_MBYQKS_ACC ON T_TCCIT_MBYQKS_ACC ( FBILLNO );


 EXEC P_ALTERPK 'PK_TCCIT_MBYQKS_ENTRY', 'T_TCCIT_MBYQKS_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_DG_A100000_4_SUM', 'T_TCCIT_DG_A100000_4_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_DG_B105060_SUM', 'T_TCCIT_DG_B105060_SUM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SETZ_JMYHHZ', 'T_TCCIT_SETZ_JMYHHZ', 'FID', '1';

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



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