]> _ Git - pmi.git/commitdiff
done #3013 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Sep 2019 15:24:06 +0000 (17:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Sep 2019 15:24:06 +0000 (17:24 +0200)
app/Console/Commands/CMSMigration.php

index ab037825d40177bd5807588ccde42dd406258255..36010b1a6b9bb73c9cf8d437d781fd6fa718735a 100644 (file)
@@ -9,14 +9,15 @@ use Illuminate\Support\Facades\DB;
 
 class CMSMigration extends Command
 {
-    protected $signature = 'pmi:exportcmsdatafromstaging';
+    protected $signature = 'pmi:importcmsdatafromstaging';
     protected $description = 'Export CMS data filed in dev to staging';
 
     public function handle()
     {
+        echo 'Run backup of dev' . "\n";
+        echo `cd /home/pmi/dev;php artisan backup:run`;
         echo 'Run backup of staging' . "\n";
-        `cd /home/pmi/dev;php artisan backup:run`;
-        `cd /home/pmi/www;php artisan backup:run`;
+        echo `cd /home/pmi/www;php artisan backup:run`;
 
         $tables = ['cubist_cms_pages', 'cubist_news', 'cubist_settings', 'cubist_locales', 'cubist_translate', 'applications'];
         $models = ['App\Models\Page', 'App\Models\News', 'App\Models\Locale', 'App\Models\Settings', 'App\Models\Translate', 'App\Models\Application'];