Upgrading 2.7 to 3.1 failing: "hotlinked_media_status" already exists

This was a subject of a fix last year, strangely.

@david forgive me for mentioning you, but this is completely relevant to that fix, would you care to chime in here?