mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
[Repair] add repair info for changed collation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user