From 9ff39283df429eb58a7e2bca6c6a0dbd2ca59612 Mon Sep 17 00:00:00 2001 From: Default Date: Sat, 19 Apr 2025 15:29:02 +0800 Subject: [PATCH] feature mongo novel index --- code/database/mongo/migrations/novel.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/database/mongo/migrations/novel.php b/code/database/mongo/migrations/novel.php index be9a4ef..ae80f92 100644 --- a/code/database/mongo/migrations/novel.php +++ b/code/database/mongo/migrations/novel.php @@ -10,10 +10,22 @@ return [ 'key' => ['n_name' => 1], 'options' => ['unique' => false] ], + [ + 'key' => ['n_author' => 1], + 'options' => ['unique' => false] + ], + [ + 'key' => ['n_description' => 1], + 'options' => ['unique' => false] + ], [ 'key' => ['n_category' => 1], 'options' => ['unique' => false] ], + [ + 'key' => ['n_category_sex_en' => 1], + 'options' => ['unique' => false] + ], [ 'key' => ['n_status' => 1], 'options' => ['unique' => false]