Browse Source

[Repair] add repair info for changed collation

remotes/origin/handlebars-approach
Morris Jobke 11 years ago
parent
commit
17ff77c4e7
  1. 1
      lib/repair/collation.php

1
lib/repair/collation.php

@ -60,6 +60,7 @@ class Collation extends BasicEmitter implements \OC\RepairStep {
$tables = $this->getAllNonUTF8BinTables($this->connection);
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->execute();
}

Loading…
Cancel
Save