mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-28 18:12:16 +00:00
fix(setup): update chunks in step 11 (#5965)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
BEGIN;
|
||||
-- create table with empty created_at
|
||||
ALTER TABLE eventstore.events ADD COLUMN IF NOT EXISTS created_at TIMESTAMPTZ DEFAULT NULL;
|
||||
-- set column rules
|
||||
ALTER TABLE eventstore.events ALTER COLUMN created_at SET DEFAULT clock_timestamp();
|
||||
COMMIT;
|
||||
@@ -0,0 +1 @@
|
||||
SELECT id, creation_date FROM eventstore.events WHERE created_at IS NULL ORDER BY event_sequence DESC, instance_id LIMIT 20 FOR UPDATE
|
||||
@@ -0,0 +1 @@
|
||||
UPDATE eventstore.events SET created_at = $1 WHERE id = $2
|
||||
@@ -0,0 +1,3 @@
|
||||
BEGIN;
|
||||
ALTER TABLE eventstore.events ALTER COLUMN created_at SET NOT NULL;
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user