aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-11-06 21:55:39 +0100
committerGitHub <noreply@github.com>2018-11-06 21:55:39 +0100
commit85d2c7ec384a9e5a8529d7c6410c0e648efd882d (patch)
tree77e4b9b4d4b3f2bfe63d03a25745fe456af5076b /core
parent0f1edd538ea6ad8e855a6367f44928f99047568d (diff)
parent4d20c4272f997c2f1a039cc90e81e395a3afad59 (diff)
downloadnextcloud-server-85d2c7ec384a9e5a8529d7c6410c0e648efd882d.tar.gz
nextcloud-server-85d2c7ec384a9e5a8529d7c6410c0e648efd882d.zip
Merge pull request #12312 from nextcloud/bugfix/11527/fix-index-name
Fix index names
Diffstat (limited to 'core')
-rw-r--r--core/Application.php8
-rw-r--r--core/Command/Db/AddMissingIndices.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/core/Application.php b/core/Application.php
index 5a8b6be089e..a65f1f3fa60 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -70,11 +70,11 @@ class Application extends App {
if (!$table->hasIndex('parent_index')) {
$subject->addHintForMissingSubject($table->getName(), 'parent_index');
}
- if (!$table->hasIndex('uid_owner')) {
- $subject->addHintForMissingSubject($table->getName(), 'uid_owner');
+ if (!$table->hasIndex('owner_index')) {
+ $subject->addHintForMissingSubject($table->getName(), 'owner_index');
}
- if (!$table->hasIndex('uid_initiator')) {
- $subject->addHintForMissingSubject($table->getName(), 'uid_initiator');
+ if (!$table->hasIndex('initiator_index')) {
+ $subject->addHintForMissingSubject($table->getName(), 'initiator_index');
}
}
diff --git a/core/Command/Db/AddMissingIndices.php b/core/Command/Db/AddMissingIndices.php
index c2068b36915..8fb5f9b4e88 100644
--- a/core/Command/Db/AddMissingIndices.php
+++ b/core/Command/Db/AddMissingIndices.php
@@ -99,7 +99,7 @@ class AddMissingIndices extends Command {
$output->writeln('<info>Share table updated successfully.</info>');
}
- if (!$table->hasIndex('uid_owner')) {
+ if (!$table->hasIndex('owner_index')) {
$output->writeln('<info>Adding additional owner index to the share table, this can take some time...</info>');
$table->addIndex(['uid_owner'], 'owner_index');
$this->connection->migrateToSchema($schema->getWrappedSchema());
@@ -107,7 +107,7 @@ class AddMissingIndices extends Command {
$output->writeln('<info>Share table updated successfully.</info>');
}
- if (!$table->hasIndex('uid_initiator')) {
+ if (!$table->hasIndex('initiator_index')) {
$output->writeln('<info>Adding additional initiator index to the share table, this can take some time...</info>');
$table->addIndex(['uid_initiator'], 'initiator_index');
$this->connection->migrateToSchema($schema->getWrappedSchema());