mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-02 22:48:20 +00:00
fix(database): create index only if not exists (#4798)
The statements caused an error for me because the indexes were already existing. Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
parent
8fa0e3843b
commit
069b3570f5
@ -1,10 +1,10 @@
|
|||||||
CREATE INDEX current_sequences_instance_id_idx ON adminapi.current_sequences (instance_id);
|
CREATE INDEX IF NOT EXISTS 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 IF NOT EXISTS 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 IF NOT EXISTS 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 IF NOT EXISTS 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 IF NOT EXISTS failed_events_instance_id_idx ON auth.failed_events (instance_id);
|
||||||
CREATE INDEX failed_events_instance_id_idx ON projections.failed_events (instance_id);
|
CREATE INDEX IF NOT EXISTS failed_events_instance_id_idx ON projections.failed_events (instance_id);
|
||||||
|
|
||||||
ALTER TABLE adminapi.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
|
ALTER TABLE adminapi.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
|
||||||
ALTER TABLE auth.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
|
ALTER TABLE auth.failed_events ADD COLUMN last_failed TIMESTAMPTZ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user