mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
update to isoutc string value.
This commit is contained in:
parent
c7e79a0563
commit
3749e2a70d
2 changed files with 13 additions and 2 deletions
|
|
@ -6,4 +6,15 @@ ALTER TABLE "event_data" RENAME COLUMN "event_data_type" TO "data_type";
|
|||
|
||||
-- add job_id
|
||||
ALTER TABLE "website_event" ADD COLUMN "job_id" UUID AFTER "created_at";
|
||||
ALTER TABLE "event_data" ADD COLUMN "job_id" UUID AFTER "created_at";
|
||||
ALTER TABLE "event_data" ADD COLUMN "job_id" UUID AFTER "created_at";
|
||||
|
||||
-- update event_data string
|
||||
alter table umami.event_data
|
||||
update string_value = number_value
|
||||
where number_value is not null
|
||||
and string_value is null;
|
||||
|
||||
alter table umami.event_data
|
||||
update string_value = replaceOne(concat(CAST(toDateTime(date_value, 'UTC'), 'String'),'Z'), ' ', 'T')
|
||||
where date_value is not null
|
||||
and string_value is null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue