mirror of
https://github.com/block/buzz.git
synced 2026-10-29 05:21:31 +00:00
Keep v1 natural drain with an optional UTC cutoff. Serialize claim and mint policy reads with restriction and owner writes. Share historical revocation repair across migration and desired-state upgrades while retaining deletion fences. Co-authored-by: Codex <codex@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com> Signed-off-by: Local Builder <1c476cb1127ea270cb900bdc3891060140bdd1173f91498030ee9b4db01c2f20@buzz.block.builderlab.xyz>
7 lines
338 B
SQL
7 lines
338 B
SQL
SELECT attach_community_write_fence('community_bans');
|
|
|
|
CREATE TRIGGER invite_restriction_lock BEFORE INSERT OR UPDATE ON community_bans
|
|
FOR EACH ROW EXECUTE FUNCTION lock_invite_restrictions();
|
|
CREATE TRIGGER invite_issuer_revocation AFTER INSERT OR UPDATE ON community_bans
|
|
FOR EACH ROW EXECUTE FUNCTION revoke_banned_issuer_invites();
|