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:
parent
def19bb8de
commit
4c1e356658
3 changed files with 1172 additions and 1 deletions
1169
resources/sql/patches/116.utf8-backup-first-expect-wait.sql
Normal file
1169
resources/sql/patches/116.utf8-backup-first-expect-wait.sql
Normal file
File diff suppressed because it is too large
Load diff
|
@ -153,7 +153,8 @@ END;
|
|||
require_once $patch['path'];
|
||||
} else {
|
||||
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_pass,
|
||||
$conn_bare_hostname,
|
||||
|
|
|
@ -163,6 +163,7 @@ class AphrontMySQLDatabaseConnection extends AphrontDatabaseConnection {
|
|||
if (!$ret) {
|
||||
$this->throwQueryException($conn);
|
||||
}
|
||||
mysql_set_charset('utf8');
|
||||
}
|
||||
|
||||
$profiler->endServiceCall($call_id, array());
|
||||
|
|
Loading…
Reference in a new issue