From 8f10d2789dca9ca7a43d52fac0de262937133344 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 15 Jan 2022 19:41:17 +0100
Subject: [PATCH] =?UTF-8?q?DB:=20Nov=C3=BD=20typ=20jobu=20send=5Fgrading?=
 =?UTF-8?q?=5Finfo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 db/db.ddl               | 3 ++-
 db/upgrade-20220115.sql | 2 ++
 mo/db.py                | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/db/db.ddl b/db/db.ddl
index dc14d7eb..545ae69d 100644
--- a/db/db.ddl
+++ b/db/db.ddl
@@ -323,7 +323,8 @@ CREATE TYPE job_type AS ENUM (
 	'upload_feedback',
 	'create_protocols',
 	'process_scans',
-	'fix_submits'
+	'fix_submits',
+	'send_grading_info'
 );
 
 CREATE TYPE job_state AS ENUM (
diff --git a/db/upgrade-20220115.sql b/db/upgrade-20220115.sql
index c2fb98fe..7bf0d633 100644
--- a/db/upgrade-20220115.sql
+++ b/db/upgrade-20220115.sql
@@ -1,3 +1,5 @@
 SET ROLE 'mo_osmo';
 
 ALTER TYPE round_state ADD VALUE 'graded';
+
+ALTER TYPE job_type ADD VALUE 'send_grading_info';
diff --git a/mo/db.py b/mo/db.py
index a7f30576..919984b3 100644
--- a/mo/db.py
+++ b/mo/db.py
@@ -716,6 +716,7 @@ class JobType(MOEnum):
     process_scans = auto()
     sort_scans = auto()
     fix_submits = auto()
+    send_grading_info = auto()
 
 
 class JobState(MOEnum):
-- 
GitLab