Created
February 2, 2016 15:19
Revisions
-
pulponair created this gist
Feb 2, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ UPDATE tx_foo_domain_model_bar s, sys_file_reference r, sys_file f SET s.sorting = CAST(SUBSTRING(f.name,6,3) AS UNSIGNED) * 256 WHERE s.record_type=1 AND r.tablenames = 'tx_foo_domain_model_bar' AND r.fieldname = 'image' AND r.uid_foreign = s.uid AND r.uid_local = f.uid