Skip to content
Snippets Groups Projects
Commit 17ff77c4 authored by Morris Jobke's avatar Morris Jobke
Browse files

[Repair] add repair info for changed collation

parent 5ff536b4
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ class Collation extends BasicEmitter implements \OC\RepairStep { ...@@ -60,6 +60,7 @@ class Collation extends BasicEmitter implements \OC\RepairStep {
$tables = $this->getAllNonUTF8BinTables($this->connection); $tables = $this->getAllNonUTF8BinTables($this->connection);
foreach ($tables as $table) { foreach ($tables as $table) {
$this->emit('\OC\Repair', 'info', array("Change collation for $table ..."));
$query = $this->connection->prepare('ALTER TABLE `' . $table . '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;'); $query = $this->connection->prepare('ALTER TABLE `' . $table . '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;');
$query->execute(); $query->execute();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment