Skip to content

Commit

Permalink
Fix: Remove unique constraint from sub field (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Sep 10, 2024
2 parents e2d8aca + ecf6ab2 commit ce0dafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eligibility_server/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __repr__(self):

class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
sub = db.Column(db.String, unique=True, nullable=False)
sub = db.Column(db.String, unique=False, nullable=False)
name = db.Column(db.String, unique=False, nullable=False)
types = db.relationship("Eligibility", secondary=user_eligibility, lazy="subquery", backref=db.backref("users", lazy=True))

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ source = ["eligibility_server"]

[tool.pyright]
include = ["eligibility_server", "tests"]
typeCheckingMode = "off"

[tool.setuptools.packages.find]
include = ["eligibility_server*"]
Expand Down

0 comments on commit ce0dafe

Please sign in to comment.