|
|
@@ -6,6 +6,8 @@ use Illuminate\Console\Command;
|
|
|
use App\Models\FtsText;
|
|
|
use App\Models\WbwTemplate;
|
|
|
use App\Models\BookTitle;
|
|
|
+use App\Models\PaliText;
|
|
|
+use App\Models\PageNumber;
|
|
|
|
|
|
class UpgradePcdBookId extends Command
|
|
|
{
|
|
|
@@ -58,6 +60,16 @@ class UpgradePcdBookId extends Command
|
|
|
->where('paragraph','>=',$value->paragraph)
|
|
|
->update(['pcd_book_id'=>$value->sn]);
|
|
|
}
|
|
|
+ if($table === 'all' || $table ==='pali_text'){
|
|
|
+ PaliText::where('book',$value->book)
|
|
|
+ ->where('paragraph','>=',$value->paragraph)
|
|
|
+ ->update(['pcd_book_id'=>$value->sn]);
|
|
|
+ }
|
|
|
+ if($table === 'all' || $table ==='page_number'){
|
|
|
+ PageNumber::where('book',$value->book)
|
|
|
+ ->where('paragraph','>=',$value->paragraph)
|
|
|
+ ->update(['pcd_book_id'=>$value->sn]);
|
|
|
+ }
|
|
|
$bar->advance();
|
|
|
}
|
|
|
$bar->finish();
|