debug
This commit is contained in:
10
code/database/mongo/migrations/category.php
Normal file
10
code/database/mongo/migrations/category.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'category',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['ca_name' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
]
|
||||
];
|
||||
23
code/database/mongo/migrations/chapter.php
Normal file
23
code/database/mongo/migrations/chapter.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'chapter',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['c_source_uuid' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
|
||||
[
|
||||
'key' => ['n_id' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['c_sort_num' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['c_page' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
]
|
||||
];
|
||||
10
code/database/mongo/migrations/config_subject_fomart.php
Normal file
10
code/database/mongo/migrations/config_subject_fomart.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'config_subject_fomart',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['csf_key' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
]
|
||||
];
|
||||
10
code/database/mongo/migrations/gan_rao_ma.php
Normal file
10
code/database/mongo/migrations/gan_rao_ma.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'gan_rao_ma',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['grm_domain' => 1, 'grm_page_code' => 1, 'grm_page_diff' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
]
|
||||
];
|
||||
50
code/database/mongo/migrations/novel.php
Normal file
50
code/database/mongo/migrations/novel.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'novel',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['n_id' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
[
|
||||
'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]
|
||||
],
|
||||
[
|
||||
'key' => ['n_source_uuid' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
[
|
||||
'key' => ['n_related_novel.n_id' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['n_forge_novel.n_forge_id' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['n_have_chapter' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
]
|
||||
];
|
||||
10
code/database/mongo/migrations/novel_clicks.php
Normal file
10
code/database/mongo/migrations/novel_clicks.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'novel_clicks',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['n_id' => 1, 'nc_date' => 1, 'nc_type' => 1],
|
||||
'options' => ['unique' => true]
|
||||
],
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user