Spaces:
Sleeping
Sleeping
Download backend/migrations/004_comment_reply_parent_reply_id.sql from bardd/mike-backend: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/bardd/mike-backend/resolve/main/backend/migrations/004_comment_reply_parent_reply_id.sql
- Command line
-
hf download hf://spaces/bardd/mike-backend/backend/migrations/004_comment_reply_parent_reply_id.sql
-
curl -L -o 004_comment_reply_parent_reply_id.sql https://huggingface.co/spaces/bardd/mike-backend/resolve/main/backend/migrations/004_comment_reply_parent_reply_id.sql
654 Bytes
| -- Add portal reply-to-reply support for Comments & Issues. | |
| -- parent_word_comment_id remains for imported Word reply hierarchy. | |
| -- parent_reply_id is used when a portal reply is replying to another portal/Word reply row. | |
| alter table public.document_comment_replies | |
| add column if not exists parent_reply_id uuid | |
| references public.document_comment_replies(id) | |
| on delete set null; | |
| create index if not exists document_comment_replies_parent_reply_idx | |
| on public.document_comment_replies(parent_reply_id); | |
| create index if not exists document_comment_replies_thread_parent_reply_idx | |
| on public.document_comment_replies(thread_id, parent_reply_id); | |