Created
August 6, 2013 18:37
-
-
Save benhosmer/6167285 to your computer and use it in GitHub Desktop.
Mass disable comments for existing Drupal nodes. Credit: https://drupal.org/node/103064#comment-4922950
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 `node` SET `comment` = '2' WHERE `type` = 'toolkit'; | |
UPDATE node_revision SET comment=2 WHERE nid IN (SELECT nid FROM node WHERE node.type='toolkit'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment