Use plain sql in migration

accepts: 4c54ce50e4b