From f528b72f53971e7dd29df2750192f645f47626a5 Mon Sep 17 00:00:00 2001
From: Cristiano Urban <cristiano.urban@inaf.it>
Date: Mon, 26 Apr 2021 11:01:13 +0200
Subject: [PATCH] Added 'processed_blocks' and 'total_bocks' fields to track
 the progress of jobs involving retrieve operations.

Signed-off-by: Cristiano Urban <cristiano.urban@inaf.it>
---
 06-uws.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/06-uws.sql b/06-uws.sql
index 86f8e31..9335dbb 100644
--- a/06-uws.sql
+++ b/06-uws.sql
@@ -11,11 +11,13 @@ CREATE TABLE job (
     end_time timestamp,
     creation_time timestamp default CURRENT_TIMESTAMP,
     job_info jsonb,
+    processed_blocks int default null,
+    total_blocks int default null,
     results jsonb,
     error_message varchar,
     error_type ErrorType,
     error_has_detail boolean,
-    error_detail varchar,    
+    error_detail varchar,
     primary key(job_id)
 );
 
-- 
GitLab