浏览代码

update collectionName

zhongzewei 7 年之前
父节点
当前提交
d98eb3a6ce

+ 1 - 1
modules/all_models/options.js

@@ -13,4 +13,4 @@ const optionSchema = new Schema({
     }
 }, {versionKey: false});
 
-mongoose.model('options', optionSchema);
+mongoose.model('options', optionSchema, 'options');

+ 1 - 1
modules/all_models/projects.js

@@ -32,4 +32,4 @@ const ProjectSchema = new Schema({
     "changeMark":String//更新标记  feeRate:费率文件发生了改变,unitFile 单件文件发生了改变
 });
 
-mongoose.model(collectionName, ProjectSchema);
+mongoose.model(collectionName, ProjectSchema, ccollectionName);

+ 1 - 1
modules/all_models/stdBills_itemCharacter.js

@@ -14,4 +14,4 @@ const stdBills_itemCharacter = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_itemCharacter', stdBills_itemCharacter, 'std_bills_lib_itemCharacter');
+mongoose.model('std_bills_lib_itemCharacter', stdBills_itemCharacter);

+ 1 - 1
modules/all_models/stdBills_jobContent.js

@@ -14,4 +14,4 @@ const stdBills_jobContent = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_jobContent', stdBills_jobContent, 'std_bills_lib_jobContent');
+mongoose.model('std_bills_lib_jobContent', stdBills_jobContent);

+ 1 - 1
modules/all_models/stdBills_lib.js

@@ -19,4 +19,4 @@ const stdBills_lib = new Schema({
     {versionKey: false}
 );
 
-mongoose.model('std_bills_lib_list', stdBills_lib, 'std_bills_lib_list');
+mongoose.model('std_bills_lib_list', stdBills_lib);