How to force a photos rebuild (not repair) on El Capitan
I had been using photos without an issue in a sparse image for a couple years. I made what I assume to be a mistake in letting Time Machine do a backup at the same time I was attempting to use the photo library, and afterwards when trying to use the library, after a few minutes, I'd get a message saying that the data was corrupt and it had to shut down.
Did a lot of reading and first tried the repair. But at a certain point during the repair, around 10%, it would also say there was corrupt data.
More reading, and it suggested creating a new library and then copying the master and resources folders to it (overwriting the new folders). I did that and it worked, but then shortly afterwards I got the corruption message again.
I decided that it might have something to do with being in the sparse image, since the library size was within a few gig of the image size. I created a new library on the main drive, and did the copy again of the master and resources folders. All the images are present in the master folder.
When I alt command double-click on the library, I get a repair dialog. It never offers a dialog with choices like rebuild. When I repair, the progress meter counts up from 1 to 5%, and then jumps to 100%. The result is no photos in the library, though all are present in the master folder and there is tons of data in the resources folder.
I read that a rebuild will do just that, rather than trying to repair, but I can find no way to have it offer a rebuild.
Photos-OTHER, OS X El Capitan (10.11.6)