EcomDev / sync-magento-2-migration

Release of rough proof of concept from 2018 that allows to import and export millions of products quickly
Open Software License 3.0
59 stars 11 forks source link

Error "enterprise_catalog_product_rewrite" table not found #5

Closed erfanimani closed 5 months ago

erfanimani commented 2 years ago

There's a hard reference to Magento Enterprise tables here, causing issues with product export:

https://github.com/EcomDev/sync-magento-2-migration/blob/main/src/ProductInfo.php#L408

I managed to get around it by excluding product URL rewrites, and generating rewrites using this: https://github.com/elgentos/regenerate-catalog-urls

Should there be a check to see if that table exists and/or the current version is Enterprise?

IvanChepurnyi commented 2 years ago

true, this one is based on m1 with EE database structure. It is however possible to use core_url_rewrite table for export, but don't have yet time to make it happen.

erfanimani commented 1 year ago

The implementation solution is to check for table existence, if the enterprise table doesn't exist, switch to using core_url_rewrite