Skip to content

Commit

Permalink
fix: Order by timestamp in migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Dec 6, 2024
1 parent 7f26952 commit 314a6e0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def upgrade():
SET status_history = (
SELECT jsonb_agg(
jsonb_build_object('status', status, 'timestamp', timestamp)
ORDER BY timestamp
)
FROM data
WHERE data.id = vfolders.id
Expand Down

0 comments on commit 314a6e0

Please sign in to comment.