Skip to content

Commit ecf6ab2

Browse files
committed
fix(db): remove unique constraint from sub
we're seeing duplicate records in the output file since we don't have access to the source data, and a duplicate sub doesn't impact a user's ability to verify, we can ignore duplicates
1 parent 5d00962 commit ecf6ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eligibility_server/db/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __repr__(self):
1818

1919
class User(db.Model):
2020
id = db.Column(db.Integer, primary_key=True)
21-
sub = db.Column(db.String, unique=True, nullable=False)
21+
sub = db.Column(db.String, unique=False, nullable=False)
2222
name = db.Column(db.String, unique=False, nullable=False)
2323
types = db.relationship("Eligibility", secondary=user_eligibility, lazy="subquery", backref=db.backref("users", lazy=True))
2424

0 commit comments

Comments
 (0)