zitadel/migrations/cockroach/V1.56__token_idx.sql
Silvan 3d865b3178
fix(auth): improve sign out handling (#2030)
* fix(auth): create index on token table

* only terminate active sessions

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2021-07-19 15:12:00 +02:00

1 line
87 B
SQL

CREATE INDEX IF NOT EXISTS user_user_agent_idx ON auth.tokens (user_id, user_agent_id);