企业版不好升级,想改回社区版,有办法改吗?

5.43K 浏览M2交流区

企业版不好升级,想改回社区版,有办法改吗?

求教大神支招,不然要全站重做了。

0

数据库执行
DELETE FROM setup_module WHERE module IN (
'Magento_AdvancedSearch', 'Magento_Amqp', 'Magento_BundleStaging', 'Magento_CatalogEvent', 'Magento_CatalogImportExportStaging', 'Magento_CatalogInventoryStaging', 'Magento_CatalogPermissions', 'Magento_CatalogRuleStaging', 'Magento_CatalogStaging', 'Magento_CatalogUrlRewriteStaging', 'Magento_CheckoutStaging', 'Magento_CmsStaging', 'Magento_ConfigurableProductStaging', 'Magento_CustomerBalance', 'Magento_CustomerFinance', 'Magento_Cybersource', 'Magento_DownloadableStaging', 'Magento_Elasticsearch', 'Magento_Enterprise', 'Magento_Eway', 'Magento_GiftCardAccount', 'Magento_GiftCardImportExport', 'Magento_GiftCardStaging', 'Magento_GiftMessageStaging', 'Magento_GiftRegistry', 'Magento_GiftWrapping', 'Magento_GiftWrappingStaging', 'Magento_GoogleOptimizerStaging', 'Magento_GroupedProductStaging', 'Magento_Invitation', 'Magento_LayeredNavigationStaging', 'Magento_MessageQueue', 'Magento_MsrpStaging', 'Magento_MultipleWishlist', 'Magento_MysqlMq', 'Magento_PaymentStaging', 'Magento_PersistentHistory', 'Magento_PricePermissions', 'Magento_ProductVideoStaging', 'Magento_PromotionPermissions', 'Magento_Reminder', 'Magento_ResourceConnections', 'Magento_ReviewStaging', 'Magento_Reward', 'Magento_RmaStaging', 'Magento_SalesArchive', 'Magento_SalesRuleStaging', 'Magento_ScalableCheckout', 'Magento_ScalableInventory', 'Magento_ScalableOms', 'Magento_ScheduledImportExport', 'Magento_SearchStaging', 'Magento_Solr', 'Magento_Staging', 'Magento_Support', 'Magento_VersionsCms', 'Magento_WebsiteRestriction', 'Magento_WeeeStaging', 'Magento_Worldpay', 'Magento_Banner', 'Magento_BannerCustomerSegment', 'Magento_CustomAttributeManagement', 'Magento_CustomerBalance', 'Magento_CustomerCustomAttributes', 'Magento_CustomerSegment', 'Magento_GiftCard', 'Magento_GoogleTagManager', 'Magento_Logging', 'Magento_Rma', 'Magento_TargetRule', 'Magento_VisualMerchandiser'
);

UPDATE eav_attribute SET backend_model = 'MagentoCatalogModelProductAttributeBackendPrice' WHERE attribute_code = 'giftcard_amounts' LIMIT 1;
UPDATE eav_attribute SET backend_model = NULL WHERE attribute_code IN ('related_tgtr_position_limit','related_tgtr_position_behavior','upsell_tgtr_position_limit','upsell_tgtr_position_behavior');
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'is_returnable' AND entity_type_id = 4 LIMIT 1;
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'allow_open_amount' AND entity_type_id = 4 LIMIT 1;
UPDATE eav_attribute SET source_model = NULL WHERE attribute_code = 'giftcard_type' AND entity_type_id = 4 LIMIT 1;

0

这样估计不行。我看了下企业版的表字段 有些跟开源版不一样。
以企业版2.3.3和开源版2.3.3举例:
比如catalog_product_entity_varchar表,
开源版的字段是
value_id
attribute_id
store_id
entity_id
value
而企业版的字段是
value_id
attribute_id
store_id
value
row_id

看到没有,字段名都不一样。

所以贸然用改数据库的方式去换回开源版,是风险很大的,会有很多未知的bug。

我觉得还不如装个新的开源版,然后把企业版的插件和数据弄过去。

0

是的。 不能这样更改。 最好的方式是,整理好现在企业版上你们在使用的插件。 弄一个干净的社区版,找到对应功能插件或定制好。 将原来的产品数据和相关订单及用户信息,更新到社区版里。 这样会比较好些。

0

感谢大佬们的提点,我得研究下怎么无损转移产品。

0