/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_INVOICE_LOG', 'T_RIM_INVOICE_LOG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_INVOICE_LOG') CREATE  CLUSTERED INDEX IDX_RIM_INVOICE_LOG ON T_RIM_INVOICE_LOG ( FSERIAL_NO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_INVOICE_LOG2') CREATE INDEX IDX_RIM_INVOICE_LOG2 ON T_RIM_INVOICE_LOG ( FCREATE_TIME ,FCREATER );



/**End D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
