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:
Silvan 2023-03-08 16:19:12 +01:00 committed by GitHub
parent 20e4f1ce57
commit c8f206c438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 25 deletions

View File

@ -1,6 +1,6 @@
-- replace agg_type_agg_id
BEGIN;
DROP INDEX eventstore.events@agg_type_agg_id;
DROP INDEX IF EXISTS eventstore.events@agg_type_agg_id;
COMMIT;
BEGIN;
@ -23,7 +23,7 @@ COMMIT;
-- replace agg_type
BEGIN;
DROP INDEX eventstore.events@agg_type;
DROP INDEX IF EXISTS eventstore.events@agg_type;
COMMIT;
BEGIN;
@ -49,17 +49,3 @@ COMMIT;
BEGIN;
DROP INDEX IF EXISTS eventstore.events@agg_type_seq;
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;

View File

@ -28,12 +28,3 @@ COMMIT;
BEGIN;
DROP INDEX IF EXISTS eventstore.agg_type_seq;
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;