|
|
@@ -11,7 +11,7 @@ class Install extends Command
|
|
|
*
|
|
|
* @var string
|
|
|
*/
|
|
|
- protected $signature = 'install {--queue}';
|
|
|
+ protected $signature = 'install {--test}';
|
|
|
|
|
|
/**
|
|
|
* The console command description.
|
|
|
@@ -35,11 +35,51 @@ class Install extends Command
|
|
|
*
|
|
|
* @return int
|
|
|
*/
|
|
|
+ /*
|
|
|
+ php ../../public/app/install/db_insert_templet_cli.php 1 217
|
|
|
+ php ../../public/app/install/db_update_toc_cli.php 1 217 pali
|
|
|
+ php ../../public/app/install/db_update_toc_cli.php 1 217 zh-hans
|
|
|
+ php ../../public/app/install/db_update_toc_cli.php 1 217 zh-hant
|
|
|
+ php ../../public/app/install/db_insert_palitext_cli.php 1 217
|
|
|
+ php ../../public/app/install/db_update_palitext_cli.php 1 217
|
|
|
+ php ../../public/app/install/db_insert_bookword_from_csv_cli.php 1 217
|
|
|
+ php ../../public/app/install/db_insert_word_from_csv_cli.php 1 217
|
|
|
+ php ../../public/app/install/db_insert_wordindex_from_csv_cli.php
|
|
|
+
|
|
|
+ php ./migrations/20211202084900_init_pali_serieses.php
|
|
|
+ php ./migrations/20211125155600_word_statistics.php
|
|
|
+ php ./migrations/20211125155700_pali_sent_org.php
|
|
|
+ php ./migrations/20211125165700-pali_sent-upgrade.php
|
|
|
+ php ./migrations/20211126220400-pali_sent_index-upgrade.php
|
|
|
+ php ./migrations/20211127214800_sent_sim.php
|
|
|
+ php ./migrations/20211127214900-sent_sim_index.php
|
|
|
+
|
|
|
+ php ../../public/app/fts/sql.php
|
|
|
+
|
|
|
+ php ../../public/app/admin/word_index_weight_refresh.php 1 217
|
|
|
+ */
|
|
|
public function handle()
|
|
|
{
|
|
|
- $this->call('install:wbwtemplate', [
|
|
|
- 'from' => 1, 'to' => 217
|
|
|
- ]);
|
|
|
+ $isTest = $this->option('test');
|
|
|
+ if($isTest){
|
|
|
+ $this->call('install:wbwtemplate', ['from' => 1]);
|
|
|
+ }else{
|
|
|
+ $this->call('install:wbwtemplate');
|
|
|
+ $this->call('install:palitext');
|
|
|
+ $this->call('install:wordbook');
|
|
|
+ $this->call('install:wordall');
|
|
|
+ $this->call('install:wordindex');
|
|
|
+
|
|
|
+ $this->call('upgrade:palitext');
|
|
|
+ $this->call('upgrade:palitoc',['lang'=>'pali']);
|
|
|
+ $this->call('upgrade:palitoc',['lang'=>'zh-hans']);
|
|
|
+ $this->call('upgrade:palitoc',['lang'=>'zh-hant']);
|
|
|
+
|
|
|
+ $this->call('install:paliseries');
|
|
|
+ $this->call('install:wordstatistics');
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
}
|