diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-06 15:20:39 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-11-06 15:21:16 +0100 |
commit | 4d20c4272f997c2f1a039cc90e81e395a3afad59 (patch) | |
tree | 90e1d3a5302e8a2de7e95da9d23403c8558052d7 /core/Command/Db | |
parent | a88e7d30f3f6aae438ed83ec8adb217c68a4f883 (diff) | |
download | nextcloud-server-4d20c4272f997c2f1a039cc90e81e395a3afad59.tar.gz nextcloud-server-4d20c4272f997c2f1a039cc90e81e395a3afad59.zip |
Fix index names
* see #11527
Diffstat (limited to 'core/Command/Db')
-rw-r--r-- | core/Command/Db/AddMissingIndices.php | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |