Fix index names

* see #11527
pull/12312/head
Morris Jobke 8 years ago
parent a88e7d30f3
commit 4d20c4272f
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 8
      core/Application.php
  2. 4
      core/Command/Db/AddMissingIndices.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');
}
}

@ -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());

Loading…
Cancel
Save