Use sql syntax for join_request migration