Rewrites migrations with sql syntax