Created
April 8, 2014 04:12
-
-
Save mynameispj/10090023 to your computer and use it in GitHub Desktop.
Drupal 7 - Turn on comments for all nodes in a content type via MySQL
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 = 'foo' | |
UPDATE node_revision SET comment = 2 WHERE nid IN (SELECT nid FROM node WHERE type = 'foo') | |
//'foo' = the machine name of your content type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment