From 3188ee2ba3b6914b217ac6717c335c701be8f3d7 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 30 Jun 2017 14:10:43 +0100 Subject: [PATCH] Remove helper function --- app/Console/Commands/UpdatePlacesURLs.php | 58 ----------------------- app/Console/Kernel.php | 1 - changelog.md | 1 - 3 files changed, 60 deletions(-) delete mode 100644 app/Console/Commands/UpdatePlacesURLs.php diff --git a/app/Console/Commands/UpdatePlacesURLs.php b/app/Console/Commands/UpdatePlacesURLs.php deleted file mode 100644 index 97a28f97..00000000 --- a/app/Console/Commands/UpdatePlacesURLs.php +++ /dev/null @@ -1,58 +0,0 @@ -places = Place::all(); - } - - /** - * Execute the console command. - * - * @return mixed - */ - public function handle() - { - foreach ($this->places as $place) { - if ($place->foursqaure !== null) { - $place->external_urls = $place->foursquare; - } - } - - $this->info('All Places have had their external URLs values updated to the new structure.'); - } -} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index ebbc97f5..0a0aa08d 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -17,7 +17,6 @@ class Kernel extends ConsoleKernel Commands\ParseCachedWebMentions::class, Commands\ReDownloadWebMentions::class, Commands\GenerateToken::class, - Commands\UpdatePlacesURLs::class, ]; /** diff --git a/changelog.md b/changelog.md index a83e59ba..8a1cd4d1 100644 --- a/changelog.md +++ b/changelog.md @@ -2,7 +2,6 @@ ## Version {next} - Transition to using a JSON column for external urls of places - - Add a command to update external url structure of places ## Version 0.5.19 (2017-06-27) - Fix error in App\\WebMention.php