diff --git a/app/Console/Commands/MigrateTags.php b/app/Console/Commands/MigrateTags.php deleted file mode 100644 index fe1090217..000000000 --- a/app/Console/Commands/MigrateTags.php +++ /dev/null @@ -1,84 +0,0 @@ -line('Teraz prebehne migracia tagov.'); - $pocet_tagov = 0; - - Item::chunk(200, function ($items) use (&$pocet_tagov) { - - foreach ($items as $item) { - if (!empty($item->subject)) { - $tags = $item->subjects; - $pocet_tagov += count($tags); - $item->tag($tags); - } - } - }); - $this->info('Bolo zmigrovanych ' . $pocet_tagov . ' tagov'); - } - - /** - * Get the console command arguments. - * - * @return array - */ - protected function getArguments() - { - return array( - ); - } - - /** - * Get the console command options. - * - * @return array - */ - protected function getOptions() - { - return array( - - ); - } -} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b971c3534..bc1993920 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -25,7 +25,6 @@ class Kernel extends ConsoleKernel \App\Console\Commands\ImportTags::class, \App\Console\Commands\Inspire::class, \App\Console\Commands\OaiPmhDownloadImages::class, - \App\Console\Commands\MigrateTags::class, \App\Console\Commands\ImportCsv::class, \App\Console\Commands\ImportIipImages::class, \App\Console\Commands\ItemsExtractColors::class,