fix migration comment query