Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT e.`entity_id`, `ee_module`.`module_description` FROM `magento_store`.`catalog_product_entity_text` AS `descr_val`
- #UPDATE `magento_store`.`catalog_product_entity_text` AS `descr_val`
- INNER JOIN `magento_store`.`catalog_product_entity` e ON e.`entity_id` = `descr_val`.`entity_id`
- INNER JOIN `magento_store`.`eav_attribute` AS `descr_attr` ON `descr_attr`.`attribute_code` = 'description' AND `descr_val`.`attribute_id` = `descr_attr`.`attribute_id`
- INNER JOIN `magento_store`.`eav_attribute` AS `old_id_attr` ON `old_id_attr`.`attribute_code` = 'old_id'
- INNER JOIN `magento_store`.`catalog_product_entity_int` AS `old_id_val` ON `old_id_val`.`attribute_id` = `old_id_attr`.`attribute_id` AND `old_id_val`.`entity_id` = e.`entity_id`
- INNER JOIN `magentoc_live`.`mage_module` AS `ee_module` ON `ee_module`.`module_id` = `old_id_val`.`value`
- INNER JOIN `magento_store`.`eav_attribute` status_attr ON status_attr.`attribute_code` = 'extension_status' AND status_attr.`entity_type_id` = e.`entity_type_id`
- INNER JOIN `magento_store`.`catalog_product_entity_int` status_val ON status_val.`attribute_id` = status_attr.`attribute_id` AND status_val.`entity_id` = e.`entity_id`
- #SET `descr_val`.`value` = `ee_module`.`module_description`
- WHERE `descr_val`.`value` = '' AND `ee_module`.`module_description` > '' AND status_val.VALUE = 5
Add Comment
Please, Sign In to add comment