projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4deacd
)
typo
author
Rodney Ewing
<ewing.rj@gmail.com>
Tue, 25 Jun 2013 20:22:56 +0000
(13:22 -0700)
committer
Rodney Ewing
<ewing.rj@gmail.com>
Tue, 25 Jun 2013 20:22:56 +0000
(13:22 -0700)
mediagoblin/db/migrations.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/db/migrations.py
b/mediagoblin/db/migrations.py
index 50fccd788e77e6002963f94a106c2e88a3f5658f..129c19989263c4791c219d2bcf376f0f1dcda371 100644
(file)
--- a/
mediagoblin/db/migrations.py
+++ b/
mediagoblin/db/migrations.py
@@
-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()