Remove federated_id from addMissingColumns so it no longer races with migrateDmChannelsFederatedId on installs that have canonical_pair_id. Wrap the table rebuild in PRAGMA foreign_keys = OFF/ON with a transaction so the DROP TABLE succeeds even when dm_members/dm_messages hold FK refs.