Files
zitadel/cmd/setup/05.sql
2022-11-23 11:25:49 +00:00

12 lines
740 B
SQL

CREATE INDEX current_sequences_instance_id_idx ON adminapi.current_sequences (instance_id);
CREATE INDEX current_sequences_instance_id_idx ON auth.current_sequences (instance_id);
CREATE INDEX current_sequences_instance_id_idx ON projections.current_sequences (instance_id);
CREATE INDEX failed_events_instance_id_idx ON adminapi.failed_events (instance_id);
CREATE INDEX failed_events_instance_id_idx ON auth.failed_events (instance_id);
CREATE INDEX failed_events_instance_id_idx ON projections.failed_events (instance_id);
ALTER TABLE adminapi.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
ALTER TABLE auth.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
ALTER TABLE projections.failed_events ADD COLUMN last_failed TIMESTAMPTZ;