Guest User

Untitled

a guest
Jan 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. update catalog_product_entity_int m
  2. left join eav_attribute a on a.entity_type_id = 4 and a.attribute_id =
  3. m.attribute_id
  4. set value = 2
  5. where
  6. a.attribute_code = 'status'
  7. and m.entity_id in
  8. (
  9. select m.entity_id
  10. from catalog_product_entity m
  11. left join catalog_product_entity_media_gallery_value_to_entity a
  12. on a.entity_id = m.entity_id
  13. where a.value_id is null
  14. )
Add Comment
Please, Sign In to add comment