mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
With this change, we now scope role_updated websocket events to users that need to receive them. Built-in and unowned role broadcast globally, team-scheme roles emit one event per team using the role, channel-scheme roles emit one event per channel using the role. To efficiently find a role's owning scheme, a schemeid column is added to the roles table. The ID is set when the scheme creates its related roles.
2 lines
34 B
SQL
2 lines
34 B
SQL
UPDATE roles SET schemeid = NULL;
|