Database strucure for versioning and multiple languages

Posted by phobia on Stack Overflow See other posts from Stack Overflow or by phobia
Published on 2010-05-29T13:45:10Z Indexed on 2010/05/29 13:52 UTC
Read the original article Hit count: 263

Hi,

I'm wondering how to best solve the issue of content existing in multiple versions and multiple languages.

An image of my current structure can be seen here: http://i46.tinypic.com/72fx3k.png

Each content can only have one active version in each language, and that's how I'm curious on how to best solve.

Right now I have a column of the contentversions table, which means for each change of active version I have to run a update and set active=false on all version and then a update to set active=true for the piece of content in question.

Any thoughts? :)

© Stack Overflow or respective owner

Related posts about database

Related posts about versioning