The CREATE INDEX on federated_id in createTables runs before migrations. On existing installs the column is still canonical_pair_id, causing a crash. Wrap in try-catch so the migration handles it instead.
The CREATE INDEX on federated_id in createTables runs before migrations. On existing installs the column is still canonical_pair_id, causing a crash. Wrap in try-catch so the migration handles it instead.