find index before migration