diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-25 19:52:04 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-25 19:52:22 +0100 |
commit | 79736eb1cf6abacb2b79c8b8f8ca52d1cfcc6715 (patch) | |
tree | 46831c06aa2e7577e091e4d5109371a56718a844 /command | |
parent | 052178a79f9099d1ce3c36e56334cdc15911ef09 (diff) |
fix tests
Diffstat (limited to 'command')
-rw-r--r-- | command/migrate.php (renamed from command/generatesearchindices.php) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/command/generatesearchindices.php b/command/migrate.php index 4bc41d04b..364ceda42 100644 --- a/command/generatesearchindices.php +++ b/command/migrate.php @@ -19,7 +19,7 @@ use Symfony\Component\Console\Helper\ProgressBar; use OCA\News\Service\ItemService; -class GenerateSearchIndices extends Command { +class Migrate extends Command { private $service; @@ -29,18 +29,19 @@ class GenerateSearchIndices extends Command { } protected function configure() { - $this->setName('news:create-search-indices') - ->setDescription('Recreates the search indices for all items'); + $this->setName('news:migrate') + ->setDescription('Migrates the database schema. Needed when ' . + 'updating from versions prior to: 7.0.0'); } protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln( - "\nCreating search indices, this could take a while...\n" + "\nMigrating data, this could take a while...\n" ); $progressbar = function ($steps) use ($output) { return new ProgressBar($output, $steps); }; - $this->service->generateSearchIndicies($progressbar); + $this->service->generateSearchIndices($progressbar); $output->writeln("\n"); } |