[Repair] add repair info for changed collation
This commit is contained in:
parent
5ff536b45a
commit
17ff77c4e7
|
@ -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…
Reference in New Issue