edx/edx-platform — pull request #6200 by doctoryes (2014-12-09 16:06:33+00:00)
Title: Upon fail-over check, change asset metadata document to new format.

Explanation:
Although the modulestore asset metadata system is not yet in use by any other systems, a fail-over occurs upon static asset request which checks the system to see if an asset's metadata is present. That check assumes that the value of the 'assets' key of the Mongo document is a dict. Before PR #6166, this 'assets' key's value was a list. It also wasn't being used - all the asset metadata items were being added to the main document in a list keyed by its asset type, currently "asset" and "video" (not "assets").

PR #6166 has cleaned up the format by saving asset metadata in an "assets" dict. This change migrates the "assets" list to an empty "assets" dict. Again, the "assets" list in the old format shouldn't have any metadata in the list at all - so there should be no actual data to migrate from that old "assets" list.