cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1 vs Magento 2 database structure

Magento 1 vs Magento 2 database structure

[RESOURCES] While working on our data migration tool, it took our team pretty much of time to learn on what changes in Magento 2 database structure compared to Magento 1. We did make a list of significant changes in the database structure and use this for our internal development. 

 

We think it would also be good to anyone new to magento 2, so we put it together into an infographic and share it here. Hope it can help somehow, especially for one who want to have a quick overview on the key changes in Magento 2 database structures. 

 

View infographic in full size

 

PS. Please note the comparison is for quick reference rather than detailing every aspect of the database.

 

 

--
We have been building for Magento since 2009. See our growing Magento 2 Extensions & Themes collection.
6 REPLIES 6

Re: Magento 1 vs Magento 2 database structure

Thank you for sharing this. I am sure it will be useful to some.

Sindre M, CEO & Founder
ProperHost.com - The Magento Hosting Experts

Re: Magento 1 vs Magento 2 database structure

Yes we hope so Smiley Happy

 

PS. As Magento 2 evolves along the time, part of the database structure mentioned in our infographic might be subject to amendments. However, those highlighted in the current version is a good starting point for now. 

 

Regards,

Ubertheme Team

--
We have been building for Magento since 2009. See our growing Magento 2 Extensions & Themes collection.

Re: Magento 1 vs Magento 2 database structure

The difference is that Magento 1 has 333 tables whereas Magento 2 has 309 tables.In magento 1 there is 131 attributes and in magento 2 there is 127 attributes. 

Re: Magento 1 vs Magento 2 database structure

Yes, when breaking that into specific groups like stores, store views; product attributes; products; customers etc., you can see the difference in more details.

 

You might be aware of the issue when migrating group price in Magento 1 to Magento 2 - 

https://github.com/magento/data-migration-tool/issues/72

 

This issue happens as the ‘group price’ in Magento 1 has been changed to ‘tier price’ in Magento 2. So the comparison matrix indicates a clear issue that we need to figure it out a way to migrate and map the ‘group price’ to ‘tier price’, instead of ignoring this portion of data. 

 

Just want to share a small situation as such, to see why the comparison M1 vs M2 has helped us. 

 

--
We have been building for Magento since 2009. See our growing Magento 2 Extensions & Themes collection.

Re: Magento 1 vs Magento 2 database structure

For anyone who care about the changes in the latest Magento 2.1 vs. Magento 2.0.7 database. 

 

Our initial finding: we see some changes in database structures of some tables in Magento 2.1, for instance: 

eav_attribute, eav_attribute_group, eav_entity_attribute, catalog_category_product, catalogrule, catalogrule_product, customer_entity, sales_invoice_grid

 

And CONSTRAINT was removed from some tables in sales data structure like sales_bestsellers_aggregated_daily, sales_bestsellers_aggregated_monthly, sales_bestsellers_aggregated_yearly.

 

Hope this helps. 

 

Regards,

Ubertheme team

--
We have been building for Magento since 2009. See our growing Magento 2 Extensions & Themes collection.

Re: Magento 1 vs Magento 2 database structure

With Magento 2, everything is placed directly under the “app” structure, except for config.xml. It is easy for you to access all templates, layouts and js, css file. Magento 2 gives developers more opportunities for customization without changing site functionality.

 

difference-magento-1x-2.jpg