Fix create index
This commit is contained in:
parent
58fa6fdedb
commit
86b4d464c3
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue