dimagi/commcare-hq — pull request #5047 by snopoke (2014-12-11 15:05:45+00:00)
Title: handle multiple results for FormQuestionSchema

Someone managed to create two records for the same key causing this bug: http://manage.dimagi.com/default.asp?150357

Since the docs should be unique based on the `domain`, `app_id` and `xmlns` properties I decided to use them to generate the ID.

Had to do a little extra work to migrate / get rid of existing docs.