Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
groups locked var should not mess up all older code
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe committed May 12, 2024
1 parent 6014315 commit ebec22c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/db_construct.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CREATE TABLE projects (
course_id INT NOT NULL,
visible_for_students BOOLEAN NOT NULL,
archived BOOLEAN NOT NULL,
groups_locked BOOLEAN DEFAULT FALSE NOT NULL,
groups_locked BOOLEAN DEFAULT FALSE,
regex_expressions VARCHAR(50)[],
runner runner,
PRIMARY KEY(project_id),
Expand Down
2 changes: 1 addition & 1 deletion backend/project/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Project(db.Model): # pylint: disable=too-many-instance-attributes
course_id: int = Column(Integer, ForeignKey("courses.course_id"), nullable=False)
visible_for_students: bool = Column(Boolean, nullable=False)
archived: bool = Column(Boolean, nullable=False)
groups_locked: bool = Column(Boolean, nullable=False)
groups_locked: bool = Column(Boolean)
runner: Runner = Column(
EnumField(Runner, name="runner"),
nullable=False)
Expand Down

0 comments on commit ebec22c

Please sign in to comment.