Well, I made sure that the dev instance has all of the plugins that the production site does and restored the backup there!
But the staging site, (that is missing the microsoft auth plugin for some reason, but that can’t be it, can it?!?!?!) still has the EXCEPTION: psql failed: ERROR: type "hotlinked_media_status" already exists
problem.
But if only I would search:
Looks like something similar got fixed once. . .