mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 06:57:33 +00:00
fix(eventstore): use creation_date for existing columns
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
ALTER TABLE eventstore.events ADD COLUMN created_at TIMESTAMPTZ /*NOT NULL*/ DEFAULT clock_timestamp();
|
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();
|
Reference in New Issue
Block a user