platform/server/postgres/migrations/timeSchema.sql
Denis Bykhov 76bcd3c52c
Improve calendar schema (#7156)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-11-13 00:40:15 +07:00

18 lines
297 B
SQL

ALTER TABLE time
ADD "workslots" bigint,
ADD "doneOn" bigint,
add rank text,
ADD "user" text;
UPDATE time
SET "workslots" = (data->>'workslots')::bigint;
UPDATE time
SET "doneOn" = (data->>'doneOn')::bigint;
UPDATE time
SET "rank" = (data->>'rank');
UPDATE time
SET "user" = (data->>'user');