Move migrations queries out of post*

All queries in postUp or postDown are not executed, migrations were not good executed at all.