typo
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 25 Jun 2013 20:22:56 +0000 (13:22 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Tue, 25 Jun 2013 20:22:56 +0000 (13:22 -0700)
mediagoblin/db/migrations.py

index 50fccd788e77e6002963f94a106c2e88a3f5658f..129c19989263c4791c219d2bcf376f0f1dcda371 100644 (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()