The transaction that runs legacymigrate.sql will eventually fail with:
no such table: main.guild_old
if you drop portal_old without dropping guild_old first. This has
something to do with how the foreign keys and cascading works out on
SQLite's end (especially the self-fk on portal_old).