This commit is contained in:
Rodney Ewing 2013-06-25 13:22:56 -07:00
parent e4deacd9c8
commit 5a1be074c0

View File

@ -297,7 +297,7 @@ def pw_hash_nullable(db):
user_table.c.pw_hash.alter(nullable=True)
if db.bind.url.drivername is 'sqlite':
if db.bind.url.drivername == 'sqlite':
constraint = UniqueConstraint('username', table=user_table)
constraint.create()