Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14762328
D10632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
843 B
Referenced Files
None
Subscribers
None
D10632.diff
View Options
diff --git a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
--- a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
+++ b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
@@ -109,10 +109,14 @@
}
public function createDatabase($fragment) {
+ $info = $this->getCharsetInfo();
+ list($charset, $collate_text, $collate_sort) = $info;
+
queryfx(
$this->getConn(null),
- 'CREATE DATABASE IF NOT EXISTS %T COLLATE utf8_general_ci',
- $this->getDatabaseName($fragment));
+ 'CREATE DATABASE IF NOT EXISTS %T COLLATE %Q',
+ $this->getDatabaseName($fragment),
+ $collate_text);
}
public function createTable($fragment, $table, array $cols) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 5:41 AM (19 h, 59 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7039195
Default Alt Text
D10632.diff (843 B)
Attached To
Mode
D10632: Create new databases with appropriate collation
Attached
Detach File
Event Timeline
Log In to Comment