Simple versioning (in PHP/Zend Framework)? -
I think how can I make simple versions, say that I want to be able to get back past edits (To do just 3) may be to post one because the app allows another user to edit a post but I want to restore the position to the owner, for example.
Do I just store the full post in another area?
I have done this before by creating a table that has the following columns: id, serialization value, which you back up Back up is made, that table, back up has been made.
In this way you have a complete list of all the versions of that table. I use the principle ORM so that I can set up a post-accepted hook to create a new backup version in that table.
Comments
Post a Comment