Created
November 23, 2017 11:26
-
-
Save jcisio/06aa0c02e61d6a693dcaee71ad2fb068 to your computer and use it in GitHub Desktop.
Update nodes to the last revisions
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
UPDATE node | |
JOIN (SELECT nid, max(vid) as vid FROM node_revision GROUP BY nid) as tv USING(nid) | |
SET node.vid = tv.vid | |
WHERE node.type = 'cours' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment