/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_INV_WITHHOLDVOUCHER', 'T_RIM_INV_WITHHOLDVOUCHER', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INV_WITHHOLDVO_SERIAL') CREATE INDEX IDX_INV_WITHHOLDVO_SERIAL ON T_RIM_INV_WITHHOLDVOUCHER ( FSERIAL_NO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INV_WITHHOLDVO_CREATETIME') CREATE INDEX IDX_INV_WITHHOLDVO_CREATETIME ON T_RIM_INV_WITHHOLDVOUCHER ( FCREATETIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_INV_WITHHOLDVO_NO2') CREATE INDEX IDX_INV_WITHHOLDVO_NO2 ON T_RIM_INV_WITHHOLDVOUCHER ( FINVOICE_NO ,FSALER_TAX_NO );



/**End D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
