diff options
author | martin-rueegg <martin.rueegg@metaworx.ch> | 2015-03-03 01:49:15 +0100 |
---|---|---|
committer | martin-rueegg <martin.rueegg@metaworx.ch> | 2015-03-03 01:54:15 +0100 |
commit | 6be8ab65a5bd4e166a03b108477bc0e39cd35766 (patch) | |
tree | 2e542e8147636f032ad10856dbfe2e9170dad75c | |
parent | d620fc8798a9335f9154faa20d3d1e3be0265eed (diff) | |
download | nextcloud-server-6be8ab65a5bd4e166a03b108477bc0e39cd35766.tar.gz nextcloud-server-6be8ab65a5bd4e166a03b108477bc0e39cd35766.zip |
replace 'oc_' with dbtableprefix form config for temporary table names and indexes
-rw-r--r-- | lib/private/db/migrator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php index fcf5aae0258..f55b5078c0e 100644 --- a/lib/private/db/migrator.php +++ b/lib/private/db/migrator.php @@ -100,7 +100,7 @@ class Migrator { * @return string */ protected function generateTemporaryTableName($name) { - return 'oc_' . $name . '_' . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); + return $this->config->getSystemValue('dbtableprefix', 'oc_') . $name . '_' . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); } /** @@ -151,7 +151,7 @@ class Migrator { $indexName = $index->getName(); } else { // avoid conflicts in index names - $indexName = 'oc_' . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); + $indexName = $this->config->getSystemValue('dbtableprefix', 'oc_') . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); } $newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary()); } |