"discourse_solved_solved_topics" violates not-null constraint during rebuild

It should be pretty easy to get Ask.discourse.com to give you a query that will find all of the ones you want to delete and (after you’ve seen that part of the query works) delete them all.