1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Convert database to UTF-8

Summary: This is the script used for conversion: P319

Test Plan:
Update diff with UTF-8 characters in description.
`sql/upgrade_schema.php`
Verify data in DB and that it looks good on web.

Reviewers: epriestley, nh

Reviewed By: epriestley

CC: aran, epriestley

Maniphest Tasks: T327

Differential Revision: https://secure.phabricator.com/D1830
This commit is contained in:
vrana 2012-03-08 10:57:03 -08:00
parent def19bb8de
commit 4c1e356658
3 changed files with 1172 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -153,7 +153,8 @@ END;
require_once $patch['path']; require_once $patch['path'];
} else { } else {
list($stdout, $stderr) = execx( list($stdout, $stderr) = execx(
"mysql --user=%s --password=%s --host=%s {$port} < %s", "mysql --user=%s --password=%s --host=%s {$port} ".
"--default-character-set=utf8 < %s",
$conn_user, $conn_user,
$conn_pass, $conn_pass,
$conn_bare_hostname, $conn_bare_hostname,

View file

@ -163,6 +163,7 @@ class AphrontMySQLDatabaseConnection extends AphrontDatabaseConnection {
if (!$ret) { if (!$ret) {
$this->throwQueryException($conn); $this->throwQueryException($conn);
} }
mysql_set_charset('utf8');
} }
$profiler->endServiceCall($call_id, array()); $profiler->endServiceCall($call_id, array());