zitadel/migrations/cockroach/V1.40__indexes.sql
Silvan c919fd6f13
fix: correct imports (#1630)
* fix: correct import for errors

* fix: add missing translations

* fix(eventstore): index

* fix(eventstore): use table instead of index

* fix(proto): correct info

* fix(migrations): use eventstore
2021-04-20 22:17:37 +02:00

7 lines
291 B
SQL

use auth;
CREATE INDEX IF NOT EXISTS auth_code on auth.auth_requests (code);
use eventstore;
CREATE INDEX IF NOT EXISTS default_event_query on eventstore.events (aggregate_type, aggregate_id, event_type, resource_owner);
DROP INDEX IF EXISTS event_type;
DROP INDEX IF EXISTS resource_owner;