Last active
September 20, 2016 21:36
-
-
Save kdwolski/5f599cd22a51c3ceedcca7e80466d668 to your computer and use it in GitHub Desktop.
Handy Drupal SQL Queries
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
# Set status override on nodes in XML Sitemap when they have a noindex meta tag set | |
# For sites using XML Sitemap and Meta Tag modules | |
UPDATE xmlsitemap JOIN metatag ON ( metatag.entity_id = xmlsitemap.id) | |
SET xmlsitemap.status_override = 1 | |
WHERE xmlsitemap.id = metatag.entity_id AND metatag.data LIKE '%noindex%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment