This is an excellent feature, and in fact one that I've written for *mumble-older-version-of-phpbb-mumble* and am about to go live with. I would suggest to the coder, however, that a separate table is not required. In my implementation I create additional rows in the posts_text table, and store a tag called post_version that differentiates the various versions. The current version is always 0, so most of the phpBB code that retrieves post information simply adds "and post_version = 0" to the SQL code. By including this in the index performance does not suffer. Every edit for a post becomes an insert, with pseudo-code as follows:Post Revisions/Edit Log by David King, United States
David will implement a post revision system, enabling moderators to view detailed differences between edits made to a post with the ability to revert. This feature will have an option to be disabled, and can be further configured via the ACP to enable revision pruning.
Code: Select all
Update posts_text set post_version = post_version + 1;
Insert new post_text values;
Thanksimkingdavid wrote:EDIT: To be helpful, I edited the first post of this topic with links to the tickets and RFCs for each of the proposals.
Keywords all-caps please.drathbun wrote:......Code: Select all
Update posts_text set post_version = post_version + 1; Insert new post_text values;
Go phpBB go... Respected : Developers, Supporters.