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'];