Plugin migrations patch

Patch referenced by @lcdhoffman in #10.