fix(setup): step 10 for postgres (#5717)

This commit is contained in:
Silvan 2023-04-20 07:31:18 +02:00 committed by GitHub
parent 11d75d0121
commit 41025271f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
CREATE temporary TABLE IF NOT EXISTS wrong_events ( CREATE temporary TABLE IF NOT EXISTS wrong_events (
instance_id STRING instance_id TEXT
, event_sequence INT8 , event_sequence BIGINT
, current_cd TIMESTAMPTZ , current_cd TIMESTAMPTZ
, next_cd TIMESTAMPTZ , next_cd TIMESTAMPTZ
); );
@ -19,7 +19,7 @@ INSERT INTO wrong_events (
) AS next_cd ) AS next_cd
FROM FROM
eventstore.events eventstore.events
) WHERE ) sub WHERE
current_cd < next_cd current_cd < next_cd
ORDER BY ORDER BY
event_sequence DESC event_sequence DESC