make _key value index unique

v1.18.x
barisusakli 10 years ago
parent 72a919e416
commit 1be6a253bf

@ -112,7 +112,7 @@
}
});
db.collection('objects').ensureIndex({_key :1, value: -1}, {background:true}, function(err) {
db.collection('objects').ensureIndex({_key :1, value: -1}, {background:true, unique: true}, function(err) {
if(err) {
winston.error('Error creating index ' + err.message);
}

Loading…
Cancel
Save