/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TPO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TPO_TAX_REFUND_INFO', 'T_TPO_TAX_REFUND_INFO', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TPO_TAX_REFUND_INFO' AND KSQL_INDNAME = 'IDX_REFUND_INFO_FDECLARENUM') CREATE INDEX IDX_REFUND_INFO_FDECLARENUM ON T_TPO_TAX_REFUND_INFO ( FDECLARENUM );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TPO_TAX_REFUND_INFO' AND KSQL_INDNAME = 'IDX_TAX_REFUND_INFO_FORGID') CREATE INDEX IDX_TAX_REFUND_INFO_FORGID ON T_TPO_TAX_REFUND_INFO ( FORGID ,FSTARTDATE ,FENDDATE );



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