Skip to content

Commit

Permalink
sql: enclosure_to_recheck() sorts with more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Dec 3, 2012
1 parent f769567 commit 3d897ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_migrate_enclosures_recheck.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CREATE OR REPLACE FUNCTION enclosure_to_recheck(
FROM enclosure_torrents
WHERE next_recheck IS NULL
OR next_recheck <= NOW()
ORDER BY next_recheck ASC NULLS FIRST
ORDER BY next_recheck ASC NULLS FIRST, last_update DESC
LIMIT 1;

IF FOUND THEN
Expand Down

0 comments on commit 3d897ff

Please sign in to comment.