diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-08-07 13:24:07 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-08-07 14:57:46 -0500 |
commit | bb12fb807e59cbe124c32c0b4fa2a74e0b81aade (patch) | |
tree | 8f6e69b93d79d99659c06ca0c3f04775c0072cce /mediagoblin/db/models.py | |
parent | 18cd6b3015abee7329ae4e8295c525b7abbd0105 (diff) | |
download | mediagoblin-bb12fb807e59cbe124c32c0b4fa2a74e0b81aade.tar.lz mediagoblin-bb12fb807e59cbe124c32c0b4fa2a74e0b81aade.tar.xz mediagoblin-bb12fb807e59cbe124c32c0b4fa2a74e0b81aade.zip |
Add a new migration which removes/fixes the old migration
The previous migration, as it turns out, was not needed, and there
were many inconsistencies put in place by adding it. See issue #920.
This commit sponsored by Gergő Tisza. Thank you!
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index b3f7e23d..932ba074 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -58,7 +58,7 @@ class User(Base, UserMixin): __tablename__ = "core__users" id = Column(Integer, primary_key=True) - username = Column(Unicode, nullable=False, unique=True, index=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 |