Okay the problem is as follows. I need to implement article versioning on a site I am building. I need the latest article to also be the one shown on the main page but I also need to be able to view all the old versions of an article.
I have started by always inserting articles into the articles table and never updating them. I have also so made it so the first time I insert a new article the version_id of that article becomes equal to the article_id.
I am a bit stuck on what to do now mind. I do understand that every time an insert is done on an existing article I need to make sure that the version_id becomes equal to one.
I am open to any ideas.