Merge pull request #16807 from owncloud/fix-16779
Do not use digits in random index names
This commit is contained in:
commit
429bd7ce37
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class Migrator {
|
||||||
$indexName = $index->getName();
|
$indexName = $index->getName();
|
||||||
} else {
|
} else {
|
||||||
// avoid conflicts in index names
|
// avoid conflicts in index names
|
||||||
$indexName = $this->config->getSystemValue('dbtableprefix', 'oc_') . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS);
|
$indexName = $this->config->getSystemValue('dbtableprefix', 'oc_') . $this->random->generate(13, ISecureRandom::CHAR_LOWER);
|
||||||
}
|
}
|
||||||
$newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary());
|
$newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue