mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +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;
|