|
@@ 86-92 (lines=7) @@
|
| 83 |
|
|
| 84 |
|
if ($schema->hasTable('share')) { |
| 85 |
|
$table = $schema->getTable('share'); |
| 86 |
|
if (!$table->hasIndex('share_with_index')) { |
| 87 |
|
$output->writeln('<info>Adding additional share_with index to the share table, this can take some time...</info>'); |
| 88 |
|
$table->addIndex(['share_with'], 'share_with_index'); |
| 89 |
|
$this->connection->migrateToSchema($schema->getWrappedSchema()); |
| 90 |
|
$updated = true; |
| 91 |
|
$output->writeln('<info>Share table updated successfully.</info>'); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
if (!$table->hasIndex('parent_index')) { |
| 95 |
|
$output->writeln('<info>Adding additional parent index to the share table, this can take some time...</info>'); |
|
@@ 94-100 (lines=7) @@
|
| 91 |
|
$output->writeln('<info>Share table updated successfully.</info>'); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
if (!$table->hasIndex('parent_index')) { |
| 95 |
|
$output->writeln('<info>Adding additional parent index to the share table, this can take some time...</info>'); |
| 96 |
|
$table->addIndex(['parent'], 'parent_index'); |
| 97 |
|
$this->connection->migrateToSchema($schema->getWrappedSchema()); |
| 98 |
|
$updated = true; |
| 99 |
|
$output->writeln('<info>Share table updated successfully.</info>'); |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
if ($schema->hasTable('filecache')) { |
|
@@ 105-111 (lines=7) @@
|
| 102 |
|
|
| 103 |
|
if ($schema->hasTable('filecache')) { |
| 104 |
|
$table = $schema->getTable('filecache'); |
| 105 |
|
if (!$table->hasIndex('fs_mtime')) { |
| 106 |
|
$output->writeln('<info>Adding additional mtime index to the filecache table, this can take some time...</info>'); |
| 107 |
|
$table->addIndex(['mtime'], 'fs_mtime'); |
| 108 |
|
$this->connection->migrateToSchema($schema->getWrappedSchema()); |
| 109 |
|
$updated = true; |
| 110 |
|
$output->writeln('<info>Filecache table updated successfully.</info>'); |
| 111 |
|
} |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
if (!$updated) { |