master: patch media migrate to handle nested keys