## Summary - `upgrade:1-21:backfill-message-thread-subject` was failing on every workspace with `Method not allowed because permissions are not implemented at datasource level`. - The global workspace datasource gates raw `query()` calls behind `shouldBypassPermissionChecks`. Both the column-existence probe and the UPDATE in this command now pass that flag, matching the pattern used by the other 1.20/1.21 upgrade commands. ## Test plan - [ ] Re-run `yarn command:prod upgrade:1-21:backfill-message-thread-subject` and confirm all workspaces complete without the permissions error - [ ] Spot-check a workspace to confirm `messageThread.subject` is backfilled from the most recent message 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>