Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: f08a537e39bd2855cd29fd42260bab94d356f563
https://github.com/openSUSE/open-build-service/commit/f08a537e39bd2855cd29fd...
Author: Stephan Kulow
Date: 2012-11-12 (Mon, 12 Nov 2012)
Changed paths:
M src/api/config/database.yml.example
A src/api/db/migrate/20121112104534_fix_projects_charset.rb
A src/api/db/migrate/20121112110642_fix_packages_charset.rb
M src/api/db/structure.sql
Log Message:
-----------
[api] fix the double encoding
OBS 2.3 in combination with ruby 1.8 and rails 2 stored utf8 strings in a field
marked as default charset ("swedish") and OBS 2.4 migrated the field to UTF-8, which
didn't show a problem for english strings but broke all real UTF-8 strings. So now
we need to convert back to latin1 temporarly to then migrate to utf-8 the cruel way
For now I only take {projects,packages}.{title,description} into account - if there
are more fields that can have real utf-8 content, we can fix them later. I split the
tables into 2 migrations to make sure the code is reusable