From fad321fcf7674e95d61c650d082c92c6ff501d3c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 6 Sep 2019 17:24:06 +0200 Subject: [PATCH] done #3013 @0:05 --- app/Console/Commands/CMSMigration.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/CMSMigration.php b/app/Console/Commands/CMSMigration.php index ab03782..36010b1 100644 --- a/app/Console/Commands/CMSMigration.php +++ b/app/Console/Commands/CMSMigration.php @@ -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']; -- 2.39.5