Created
November 1, 2017 05:11
-
-
Save jtr109/053d792f8ac217534f669e55bf6b411f to your computer and use it in GitHub Desktop.
Update sort of GenericImage queryset
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 "area_genericimage" | |
SET "sort" = | |
CASE WHEN "id" = 40964 THEN 1 | |
WHEN "id" = 40965 THEN 2 | |
END | |
WHERE "area_genericimage"."id" in (40964, 40965) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refererance here