mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
Merge pull request #2326 from chillu/pulls/mysql-create-db-utf8
UTF8 defaults for MySQLDatabase->createDatabase()
This commit is contained in:
commit
ee509c905c
@ -155,7 +155,7 @@ class MySQLDatabase extends SS_Database {
|
||||
}
|
||||
|
||||
public function createDatabase() {
|
||||
$this->query("CREATE DATABASE \"$this->database\"");
|
||||
$this->query("CREATE DATABASE \"$this->database\" DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci");
|
||||
$this->query("USE \"$this->database\"");
|
||||
|
||||
$this->tableList = $this->fieldList = $this->indexList = null;
|
||||
|
Loading…
Reference in New Issue
Block a user