From e8991e2280a46e78a7b05f9c1a4298170a64cc12 Mon Sep 17 00:00:00 2001
From: Sonia Zorba <sonia.zorba@inaf.it>
Date: Mon, 25 Jan 2021 12:03:50 +0100
Subject: [PATCH] Set creation_time default value to CURRENT_TIMESTAMP

---
 06-uws.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/06-uws.sql b/06-uws.sql
index 33ba746..da2eb3e 100644
--- a/06-uws.sql
+++ b/06-uws.sql
@@ -8,7 +8,7 @@ CREATE TABLE job (
     phase JobPhaseEnum not null,
     start_time timestamp,
     end_time timestamp,
-    creation_time timestamp,
+    creation_time timestamp default CURRENT_TIMESTAMP,
     job_info jsonb,
     results jsonb,
     primary key(job_id)
-- 
GitLab