mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
schema: add partial index on channel_members.pubkey (#359)
This commit is contained in:
@@ -66,6 +66,9 @@ CREATE TABLE channel_members (
|
||||
PRIMARY KEY (channel_id, pubkey)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_channel_members_pubkey ON channel_members (pubkey)
|
||||
WHERE removed_at IS NULL;
|
||||
|
||||
-- ── Users ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
CREATE TABLE users (
|
||||
|
||||
Reference in New Issue
Block a user