Merge pull request #2326 from chillu/pulls/mysql-create-db-utf8

UTF8 defaults for MySQLDatabase->createDatabase()
This commit is contained in:
Sean Harvey 2013-08-15 15:40:35 -07:00
commit ee509c905c

View File

@ -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;