enable atomic chess in everyone filters

This commit is contained in:
Thibault Duplessis 2015-01-12 01:40:14 +01:00
parent c3abf7099a
commit 265d9c92eb

13
bin/mongodb/atomic.js Normal file
View file

@ -0,0 +1,13 @@
[db.config, db.config_anon].forEach(function(coll) {
coll.find().forEach(function(o) {
if (o.filter && o.filter.v && o.filter.v.length > 1) {
coll.update({
_id: o._id
}, {
$push: {
'filter.v': NumberInt(7)
}
});
};
});
});