diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-06-25 17:12:33 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-06-25 17:12:33 -0500 |
commit | 15db1831514aeb9fd77b7bf43a2718b1ffc4d552 (patch) | |
tree | d8aa9561efd62d901dfc625505ce85bf6b17c06a | |
parent | 6174169786beb98e6259c9d281f5571dd216a793 (diff) | |
download | mediagoblin-15db1831514aeb9fd77b7bf43a2718b1ffc4d552.tar.lz mediagoblin-15db1831514aeb9fd77b7bf43a2718b1ffc4d552.tar.xz mediagoblin-15db1831514aeb9fd77b7bf43a2718b1ffc4d552.zip |
Explain about sqlite dropping the constraint and why we're adding it back manually.
-rw-r--r-- | mediagoblin/db/migrations.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index fef353af..98e8b139 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -371,6 +371,8 @@ def pw_hash_nullable(db): user_table.c.pw_hash.alter(nullable=True) + # sqlite+sqlalchemy seems to drop this constraint during the + # migration, so we add it back here for now a bit manually. if db.bind.url.drivername == 'sqlite': constraint = UniqueConstraint('username', table=user_table) constraint.create() |