aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/dbupdate.py
diff options
context:
space:
mode:
authorBrett Smith <brettcsmith@brettcsmith.org>2012-07-04 10:54:44 -0400
committerBrett Smith <brettcsmith@brettcsmith.org>2012-07-04 10:54:44 -0400
commita00ac32045a7a03d91e0e64ee8470f0bd6f383d8 (patch)
tree8e0033d6439617bfb942139eec80211a14b8a3fc /mediagoblin/gmg_commands/dbupdate.py
parentf2e3a6a01c2a8c63064152fd92d58b4903222d18 (diff)
downloadmediagoblin-a00ac32045a7a03d91e0e64ee8470f0bd6f383d8.tar.lz
mediagoblin-a00ac32045a7a03d91e0e64ee8470f0bd6f383d8.tar.xz
mediagoblin-a00ac32045a7a03d91e0e64ee8470f0bd6f383d8.zip
Make sure MigrationManagers always get Unicode names.
If we fail to do this, SQLAlchemy complains that we're binding a non-Unicode value to a Unicode column.
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index dc36be82..1c48ff57 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -52,7 +52,7 @@ def gather_database_data(media_types):
managed_dbdata.append(
DatabaseData(
- '__main__', MAIN_MODELS, MAIN_MIGRATIONS))
+ u'__main__', MAIN_MODELS, MAIN_MIGRATIONS))
# Then get all registered media managers (eventually, plugins)
for media_type in media_types: