Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/members/member-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Open a forum or use **New posts**, **Unanswered**, **My posts** or **Search**. S
3. Add permitted attachments or a poll.
4. Submit. Posts held for approval appear after moderator review.

See [Formatting](formatting.md) for Markdown. Resume saved drafts at `/usercp/drafts`. Editing and deletion may have permission or time limits.
See [Formatting](formatting.md) for Markdown. Resume saved drafts at `/usercp/drafts`. Reply drafts follow a thread when it moves
to another forum, provided you can still read and reply there. Editing and deletion may have permission or time limits.

## Account and activity

Expand Down
6 changes: 6 additions & 0 deletions docs/operations/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ Do not point a new PostgreSQL major at an old data volume. Restore a dump into a
## Verify

Check version, pending migrations, sign-in, posting, private forums, attachments, mail, scheduled work and logs before reopening. If checks fail, use the restore plan rather than older code against the changed schema.

Migration `0073_reply_draft_forums` repairs reply drafts' stored forum references
from their live threads without changing saved content or timestamps. Updated
thread moves and autosaves maintain these references under the thread lock.
Apply this forward-only migration before deleting an old forum after an upgrade;
drafts already removed by an earlier forum deletion cannot be recovered by it.
4 changes: 4 additions & 0 deletions packages/db/migrations/0073_reply_draft_forums.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
UPDATE post_drafts d
SET forum_id = t.forum_id
FROM threads t
WHERE d.thread_id = t.id AND d.forum_id <> t.forum_id;
Loading
Loading