Write pure SQL migration