mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
86f4477ae1
* feat: allow skip of success page for native apps (#5627) add possibility to return to callback directly after login without rendering the successful login page * build next * fix(console): disallow inline fonts, critical styles (#5714) fix: disallow inline * fix(setup): step 10 for postgres (#5717) * fix(setup): smaller transactions (#5743) * fix(step10): split statements * fix(step10): split into separate execs * chore: prerelease * add truncate before insert * fix: add truncate * Merge branch 'main' into optimise-step-10 * chore: reset release definition --------- Co-authored-by: Livio Spring <livio.a@gmail.com> Co-authored-by: Max Peintner <max@caos.ch>
20 lines
465 B
SQL
20 lines
465 B
SQL
TRUNCATE wrong_events;
|
|
|
|
INSERT INTO wrong_events (
|
|
SELECT * FROM (
|
|
SELECT
|
|
instance_id
|
|
, event_sequence
|
|
, creation_date AS current_cd
|
|
, lead(creation_date) OVER (
|
|
PARTITION BY instance_id
|
|
ORDER BY event_sequence DESC
|
|
) AS next_cd
|
|
FROM
|
|
eventstore.events
|
|
) sub WHERE
|
|
current_cd < next_cd
|
|
ORDER BY
|
|
event_sequence DESC
|
|
);
|