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

This commit is contained in:
Silvan
2023-06-02 11:31:18 +02:00
committed by GitHub
parent c8b0e5a6c5
commit ebca7b6e3d
6 changed files with 76 additions and 16 deletions

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;