Skip to content

Commit

Permalink
mongodb migrate 索引报错的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Mar 23, 2017
1 parent 6c18bf0 commit 2b3d751
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion models/mongodb/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function create_index(){
['category' => -1],
];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/cms/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/cms/StaticBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/customer/Newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/product/Favorite.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/product/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down
2 changes: 1 addition & 1 deletion models/mongodb/url/UrlRewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function create_index(){

];

$options = ['background' => true, 'socketTimeoutMS' => 300000];
$options = ['background' => true];
foreach($indexs as $columns){
self::getCollection()->createIndex($columns,$options);
}
Expand Down

0 comments on commit 2b3d751

Please sign in to comment.