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.
This commit is contained in:
Brett Smith
2012-07-04 10:54:44 -04:00
parent f2e3a6a01c
commit a00ac32045
2 changed files with 5 additions and 5 deletions

View File

@@ -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: