mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-08 19:17:40 +00:00
fix(setup): check if indexes exist in step 9 (#5400)
* fix(setup): check if indexes exist in step 9 * fix(setup09): ignore the inverted index
This commit is contained in:
parent
20e4f1ce57
commit
c8f206c438
@ -1,6 +1,6 @@
|
|||||||
-- replace agg_type_agg_id
|
-- replace agg_type_agg_id
|
||||||
BEGIN;
|
BEGIN;
|
||||||
DROP INDEX eventstore.events@agg_type_agg_id;
|
DROP INDEX IF EXISTS eventstore.events@agg_type_agg_id;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
@ -23,7 +23,7 @@ COMMIT;
|
|||||||
|
|
||||||
-- replace agg_type
|
-- replace agg_type
|
||||||
BEGIN;
|
BEGIN;
|
||||||
DROP INDEX eventstore.events@agg_type;
|
DROP INDEX IF EXISTS eventstore.events@agg_type;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
@ -49,17 +49,3 @@ COMMIT;
|
|||||||
BEGIN;
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS eventstore.events@agg_type_seq;
|
DROP INDEX IF EXISTS eventstore.events@agg_type_seq;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
-- index to search event payload
|
|
||||||
BEGIN;
|
|
||||||
DROP INDEX IF EXISTS eventstore.events@event_search;
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
CREATE INVERTED INDEX event_search ON eventstore.events (
|
|
||||||
instance_id
|
|
||||||
, aggregate_type
|
|
||||||
, event_type
|
|
||||||
, event_data
|
|
||||||
);
|
|
||||||
COMMIT;
|
|
@ -28,12 +28,3 @@ COMMIT;
|
|||||||
BEGIN;
|
BEGIN;
|
||||||
DROP INDEX IF EXISTS eventstore.agg_type_seq;
|
DROP INDEX IF EXISTS eventstore.agg_type_seq;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
-- index to search event payload
|
|
||||||
BEGIN;
|
|
||||||
DROP INDEX IF EXISTS eventstore.event_search;
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
CREATE INDEX event_search ON eventstore.events USING gin (event_data);
|
|
||||||
COMMIT;
|
|
Loading…
x
Reference in New Issue
Block a user