diff --git a/src/ai/backend/manager/models/alembic/versions/786be66ef4e5_replace_vfolders_status_history_s_type_.py b/src/ai/backend/manager/models/alembic/versions/786be66ef4e5_replace_vfolders_status_history_s_type_.py index dfe3da50ab..b0b7b62db1 100644 --- a/src/ai/backend/manager/models/alembic/versions/786be66ef4e5_replace_vfolders_status_history_s_type_.py +++ b/src/ai/backend/manager/models/alembic/versions/786be66ef4e5_replace_vfolders_status_history_s_type_.py @@ -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