Created
April 18, 2018 19:17
-
-
Save szeidler/15d5e9e5d7455f94905648a7642304ea to your computer and use it in GitHub Desktop.
Show me Drupal nodes, that are revisioned, are unpublished now, but were published sometime in the history
This file contains hidden or 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
SELECT GROUP_CONCAT(nr.status) as concat, n.* FROM node AS n INNER JOIN node_revision AS nr ON nr.nid = n.nid GROUP BY nr.nid HAVING n.status = 0 AND FIND_IN_SET('1', concat); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment