Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ function(GenericEvent $event) use ($container) {
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');
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/Command/Db/AddMissingIndices.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ private function addShareTableIndicies(OutputInterface $output) {
$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());
$updated = true;
$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());
Expand Down