Revision History
Every wiki edit is preserved.
How it works
When someone saves a page, the wiki:
- Writes a new
WikiRevisionrow with the prior content snapshotted. - Updates the live
WikiPagebody/title to the new content. - Increments
rev_num(1, 2, 3, …) per page.
The full revision body is stored — no diff compression. SQLite is
fine for this at typical wiki scale.
Viewing
- Page → History button shows the revision list.
- Click any
r<N>to see that exact version rendered. - Pick two revisions and Compare to see a unified diff.
Reverting
Logged-in users can revert any non-current revision. Revert writes
a new revision with the older body — the audit trail stays intact;
you can always re-revert.
Locked pages can only be reverted by sysops.
Author tracking
Each revision stores author_id (NULL for logged-out edits, which
are disallowed by default) and the editor's IP. The IP is admin-
visible only.
Privacy
Author IP is not exposed in the public history view; only the
username is. Sysops can see IP through /admin/audit/.