Created
February 22, 2012 11:11
-
-
Save 1stevengrant/1884188 to your computer and use it in GitHub Desktop.
ngen file field upgrade - Swap out XX for your file field ID and swap out YY for your file upload location ID.
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 exp_channel_data | |
SET field_id_XX = CONCAT('{filedir_YY}', field_id_XX) | |
WHERE field_id_XX != '' | |
AND field_id_XX NOT LIKE '{filedir_%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment