From bb12fb807e59cbe124c32c0b4fa2a74e0b81aade Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 7 Aug 2014 13:24:07 -0500 Subject: Add a new migration which removes/fixes the old migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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! --- mediagoblin/db/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediagoblin/db/models.py') 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 -- cgit v1.2.3