diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-17 14:10:29 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-17 14:10:29 -0500 |
commit | fbe8edc21c152f70c8bb3a24830deb394570498c (patch) | |
tree | a8ff2931d517b1682e66666dd8e180c2849cd5ed | |
parent | b69dd853049fd7560542b47bac73675b33c78364 (diff) | |
download | mediagoblin-fbe8edc21c152f70c8bb3a24830deb394570498c.tar.lz mediagoblin-fbe8edc21c152f70c8bb3a24830deb394570498c.tar.xz mediagoblin-fbe8edc21c152f70c8bb3a24830deb394570498c.zip |
Noting why we don't have an email uniqueness constraint in the db.
This commit sponsored by Guido Günther. Thanks!
-rw-r--r-- | mediagoblin/db/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 2412706e..2b925983 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -55,6 +55,10 @@ class User(Base, UserMixin): id = Column(Integer, primary_key=True) username = Column(Unicode, nullable=False, unique=True) + # Note: no db uniqueness constraint on email because it's not + # reliable (many email systems case insensitive despite against + # the RFC) and because it would be a mess to implement at this + # point. email = Column(Unicode, nullable=False) created = Column(DateTime, nullable=False, default=datetime.datetime.now) pw_hash = Column(Unicode, nullable=False) |