Spaces:
Sleeping
Sleeping
File size: 665 Bytes
06671aa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | -- Add original Word comment timestamp persistence for Comments & Issues.
-- created_at is the database insertion time.
-- commented_at is the original timestamp from word/comments.xml when available.
alter table public.document_comment_threads
add column if not exists commented_at timestamptz;
alter table public.document_comment_replies
add column if not exists commented_at timestamptz;
create index if not exists document_comment_threads_commented_at_idx
on public.document_comment_threads(document_id, commented_at);
create index if not exists document_comment_replies_commented_at_idx
on public.document_comment_replies(thread_id, commented_at);
|