fix(setup): update chunks in step 11 (#5965) (#5966)

This commit is contained in:
Silvan
2023-06-02 10:04:03 +00:00
committed by GitHub
parent 91f4f99957
commit 743c77a729
6 changed files with 76 additions and 16 deletions
+6
View File
@@ -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;