I found this great diagram for Magento Database Tables, however, I would like to know if this is still up to date. I am running Magento 1.9. It was published in 2009 and several Magento updates have been rolled out since then. I am hoping that the database structure is still relatively the same. I'd like to get confirmation before I send it to the printer to get a large copy of it.
Diagram: MAGENTO_v1.3.2.4-Database_Diagram.pdf
Also, does anyone know where to find the table definitions? It would be a nice reference to go along with the diagram.
Best Answer
It's not up to date. There was a huge step in magento-1.6 and many minor changes in the other 1.x updates.
Especially the sales and index tables are completely different now, I would not use this sheet as a reference anymore.
Unfortunately table definitions are not in one place but scattered around hundreds of install and upgrade scripts. You will find them in
app/code/core/Mage/*/sql/*/*.php
You will notice that there is usually a
install-1.6.0.0.php
script that sets up everything for the current module and Magento 1.6. Start there and ignore all scripts with lower versions. Changes are incrementally added with scripts likeupgrade-1.6.0.0-1.6.1.0
and so on.Update: Thanks to Anna Völkl, there is a new complete database diagram for Magento 1.9.2.2:
Source: http://anna.voelkl.at/magento-ce-1-9-2-2-database-diagram/