Fix create index

This commit is contained in:
Tulir Asokan 2023-09-05 01:58:57 +03:00
parent 58fa6fdedb
commit 86b4d464c3
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ CREATE TABLE portal (
CONSTRAINT portal_user_fkey FOREIGN KEY (receiver) REFERENCES "user"(rowid) ON DELETE CASCADE,
CONSTRAINT portal_puppet_fkey FOREIGN KEY (other_user, receiver) REFERENCES puppet(id, receiver) ON DELETE CASCADE
);
CREATE INDEX ON portal(receiver, other_user);
CREATE INDEX portal_other_user_idx ON portal(receiver, other_user);
CREATE TABLE message (
conv_id TEXT NOT NULL,

View file

@ -1,2 +1,2 @@
-- v8: Add index for DM portals
CREATE INDEX ON portal(receiver, other_user);
CREATE INDEX portal_other_user_idx ON portal(receiver, other_user);