diff --git a/code/database/mongo/migrations/novel.php b/code/database/mongo/migrations/novel.php index ae80f92..ca81e49 100644 --- a/code/database/mongo/migrations/novel.php +++ b/code/database/mongo/migrations/novel.php @@ -46,5 +46,18 @@ return [ 'key' => ['n_have_chapter' => 1], 'options' => ['unique' => false] ], + [ + 'key' => ['n_update_time' => 1], + 'options' => ['unique' => false] + ], + [ + 'key' => ['n_category' => 1, 'n_have_chapter' => 1, 'n_update_time' => -1], + 'options' => ['unique' => false] + ], + + [ + 'key' => ['n_have_chapter' => 1, 'n_forge_novel' => 1], + 'options' => ['unique' => false] + ], ] ]; diff --git a/code/database/mongo/migrations/novel_clicks.php b/code/database/mongo/migrations/novel_clicks.php index 66665a7..52f7875 100644 --- a/code/database/mongo/migrations/novel_clicks.php +++ b/code/database/mongo/migrations/novel_clicks.php @@ -6,5 +6,9 @@ return [ 'key' => ['n_id' => 1, 'nc_date' => 1, 'nc_type' => 1], 'options' => ['unique' => true] ], + [ + 'key' => ['nc_clicks' => -1], + 'options' => ['unique' => false] + ], ] ]; diff --git a/code/database/mongo/migrations/video_clicks.php b/code/database/mongo/migrations/video_clicks.php index 6e8bb78..7d93991 100644 --- a/code/database/mongo/migrations/video_clicks.php +++ b/code/database/mongo/migrations/video_clicks.php @@ -22,5 +22,9 @@ return [ 'key' => ['v_parent_category_en' => 1], 'options' => ['unique' => false] ], + [ + 'key' => ['vc_clicks' => -1], + 'options' => ['unique' => false] + ], ] ];