add token index

This commit is contained in:
andrey.savchuk committed 2018-04-30 23:35:43 +03:00
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;