Introduction
...
If you are migrating Bahmni-offline server from 0.83 version to 0.84, make sure that each visit should be tied to some login location(Refer: Visit Location).
Below Below query checks whether location_id info available in encounter table for corresponding visits and populate them in visit table. If no visit info in encounter it will those visits to unknown location
...