Depends if you are regarded as a high risk for another DVT or not. If you are then you stop warfarin 5 days before, then have a daily injection of heparin each night prior to your surgery, and continue this every night till you get home when then restart warfarin. If low risk then just stop the warfarin 5 days before and restart the night after surgery.
Each hospital tends to have its own protocol but it will be similar to what I have outlined above. The hospital where you are going to have the surgery should have a pre-assessment organised for you where they'll discuss this sort of thing.
Hope this helps.