migrate 2d and fts command, update logic, SERVER-8791 SERVER-9164