mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-22 15:57:34 +00:00
6 lines
249 B
PL/PgSQL
6 lines
249 B
PL/PgSQL
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; |