mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-12 05:55:51 +01:00
update backfill script.
This commit is contained in:
parent
3749e2a70d
commit
1a793572e8
@ -11,10 +11,8 @@ ALTER TABLE "event_data" ADD COLUMN "job_id" UUID AFTER "created_at";
|
|||||||
-- update event_data string
|
-- update event_data string
|
||||||
alter table umami.event_data
|
alter table umami.event_data
|
||||||
update string_value = number_value
|
update string_value = number_value
|
||||||
where number_value is not null
|
where data_type = 2
|
||||||
and string_value is null;
|
|
||||||
|
|
||||||
alter table umami.event_data
|
alter table umami.event_data
|
||||||
update string_value = replaceOne(concat(CAST(toDateTime(date_value, 'UTC'), 'String'),'Z'), ' ', 'T')
|
update string_value = replaceOne(concat(CAST(toDateTime(date_value, 'UTC'), 'String'),'Z'), ' ', 'T')
|
||||||
where date_value is not null
|
where data_type = 4
|
||||||
and string_value is null;
|
|
Loading…
Reference in New Issue
Block a user