Move migrations queries out of post*
Merge pull request #1509 from winzou/fix/migrations

Move migrations queries out of post*