From 41025271f4c1b59d63aebbef1b4aa34a29f165cd Mon Sep 17 00:00:00 2001 From: Silvan Date: Thu, 20 Apr 2023 07:31:18 +0200 Subject: [PATCH] fix(setup): step 10 for postgres (#5717) --- cmd/setup/10.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/setup/10.sql b/cmd/setup/10.sql index ae2af741d..27853f55a 100644 --- a/cmd/setup/10.sql +++ b/cmd/setup/10.sql @@ -1,6 +1,6 @@ CREATE temporary TABLE IF NOT EXISTS wrong_events ( - instance_id STRING - , event_sequence INT8 + instance_id TEXT + , event_sequence BIGINT , current_cd TIMESTAMPTZ , next_cd TIMESTAMPTZ ); @@ -19,7 +19,7 @@ INSERT INTO wrong_events ( ) AS next_cd FROM eventstore.events - ) WHERE + ) sub WHERE current_cd < next_cd ORDER BY event_sequence DESC