Unless you have customized code for phpdig that you need to preserve, you can just overlay the old phpdig files with the new ones for 1.8.6.
Regarding database changes, there is a minor change which will necessitate you running update_db_to_1_8_5.sql. You won't need to re-index, and that change shouldn't update searches of your phpdig database.
Hope this helps.