mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 14:37:25 +00:00
6 lines
249 B
MySQL
6 lines
249 B
MySQL
![]() |
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;
|