[Repair] add repair info for changed collation

This commit is contained in:
Morris Jobke 2015-06-23 10:52:24 +02:00
parent 5ff536b45a
commit 17ff77c4e7
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}