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

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCCIT_CONTRIBUTE_PAY' AND KSQL_INDNAME = 'IDX_TCCIT_CONTRIBUTE_FORGID') CREATE INDEX IDX_TCCIT_CONTRIBUTE_FORGID ON T_TCCIT_CONTRIBUTE_PAY ( FORGID ,FCONTRIBUTETYPE ,FBUSINESSDATE );



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