| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace App\Console\Commands;
- use App\Tools\Tools;
- use Illuminate\Console\Command;
- class UpgradeAt20230227 extends Command
- {
- /**
- * The name and signature of the console command.
- *
- * @var string
- */
- protected $signature = 'upgrade:at20230227';
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = 'update to 2.0';
- /**
- * Create a new command instance.
- *
- * @return void
- */
- public function __construct()
- {
- parent::__construct();
- }
- /**
- * Execute the console command.
- *
- * @return int
- */
- public function handle()
- {
- if (Tools::isStop()) {
- return 0;
- }
- $this->call('init:system.channel');
- $this->call('init:system.dict');
- $this->call('upgrade:dict');
- $this->call('upgrade:dict.vocabulary');
- $this->call('upgrade:dict.default.meaning');
- // 语料库
- $this->call('init:cs6sentence');
- $this->call('upgrade:palitext');
- $this->call('upgrade:wbw.template');
- $this->call('upgrade:related.paragraph');
- $this->call('upgrade:fts', ['--content' => true]);
- $this->call('upgrade:pcd.book.id');
- return 0;
- }
- }
|