Created
March 25, 2022 14:14
-
-
Save scgoeswild/2f42715cd2bbc529a2ef12d4464fe9ee to your computer and use it in GitHub Desktop.
Unhide magento2 images (gallery) programmatically in SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `catalog_product_entity_media_gallery_value` SET `disabled` = 0 WHERE `value_id` IN ( | |
SELECT `value_id` FROM `catalog_product_entity_media_gallery` WHERE `value` IN ( | |
SELECT `value` FROM `catalog_product_entity_varchar` WHERE `attribute_id` = ( | |
SELECT `attribute_id` FROM `eav_attribute` WHERE `attribute_code` = "image" AND `frontend_label` = "Base" LIMIT 1 ) ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment