From 707f922e5b14de2e758b6af442711964091c300f Mon Sep 17 00:00:00 2001
From: Ruben Young On <r.d.youngon@student.tudelft.nl>
Date: Mon, 13 May 2019 20:06:26 +0200
Subject: [PATCH] FK for feedback_option in mc_option is now nullable in
 migrations and database.py

---
 zesje/database.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zesje/database.py b/zesje/database.py
index 88fa4a93..82a1c8c8 100644
--- a/zesje/database.py
+++ b/zesje/database.py
@@ -169,7 +169,7 @@ class MultipleChoiceOption(db.Model):
     label = Column(String, nullable=True)
 
     problem_id = Column(Integer, ForeignKey('problem.id'), nullable=False)
-    feedback_id = Column(Integer, ForeignKey('feedback_option.id'), nullable=False)
+    feedback_id = Column(Integer, ForeignKey('feedback_option.id'), nullable=True)
 
 
 class ExamWidget(Widget):
-- 
GitLab