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_site_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]
|
||||
],
|
||||
]
|
||||
];
|
||||
34
code/database/mongo/migrations/novel.php
Normal file
34
code/database/mongo/migrations/novel.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
return [
|
||||
'collection' => 'novel',
|
||||
'indexes' => [
|
||||
[
|
||||
'key' => ['n_id' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['og_title' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['og_novel_status' => 1],
|
||||
'options' => ['unique' => false]
|
||||
],
|
||||
[
|
||||
'key' => ['n_site_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