Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function handle() |
||
39 | { |
||
40 | if (config('website.publish_migrations', true)) { |
||
41 | $path = config('website.migration_publish_path', 'database/migrations/website'); |
||
42 | |||
43 | if (file_exists($path)) { |
||
44 | $this->call('migrate', [ |
||
45 | '--step' => true, |
||
46 | '--path' => $path, |
||
47 | '--force' => $this->option('force'), |
||
48 | ]); |
||
49 | } else { |
||
50 | $this->warn('No migrations found! Consider publish them first: <fg=green>php artisan vendor:publish --tag=website-migrations</>'); |
||
51 | } |
||
52 | } else { |
||
53 | $this->info('Please turn on publish_migrations option in config/website'); |
||
54 | } |
||
57 |