add token index
This commit is contained in:
1 parent
256dc78e5b
commit
dc572d0f65
1 file changed
+2
-1
@@ -16,6 +16,7 @@ ALTER TABLE tokens
|
||||
ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
CREATE INDEX IX_tokens_userId ON tokens USING hash (user_id);
|
||||
CREATE INDEX IX_tokens_token ON tokens USING btree (token);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE tokens;
|
||||
DROP TABLE tokens;
|
||||
Reference in new issue
Block a user