mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
5 lines
242 B
SQL
5 lines
242 B
SQL
ALTER TABLE eventstore.events ADD COLUMN created_at TIMESTAMPTZ;
|
|
|
|
UPDATE eventstore.events SET created_at = creation_date WHERE created_at IS NULL;
|
|
|
|
ALTER TABLE eventstore.events ALTER COLUMN created_at SET NOT NULL DEFAULT clock_timestamp(); |