From 1b96e6c9b406c12e3cfe99fb00d16b90e412d205 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Fri, 1 Oct 2021 23:31:48 +0200 Subject: [PATCH] =?UTF-8?q?DB:=20Round.code=20m=C3=A1=20server=5Fdefault?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo/db.py b/mo/db.py index 7f3a4088..1b3e5ff9 100644 --- a/mo/db.py +++ b/mo/db.py @@ -249,7 +249,7 @@ class Round(Base): seq = Column(Integer, nullable=False) part = Column(Integer, nullable=False) level = Column(Integer, nullable=False) - code = Column(String(255), nullable=False) + code = Column(String(255), nullable=False, server_default=text("''::text")) name = Column(String(255), nullable=False) state = Column(Enum(RoundState, name='round_state'), nullable=False, server_default=text("'preparing'::round_state")) tasks_file = Column(String(255)) -- GitLab