1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-15 15:18:22 +09:00
cherrypick/tools/migration/nighthike/6.js
2018-04-02 18:36:07 +09:00

14 lines
139 B
JavaScript

db.posts.update({
$or: [{
mediaIds: null
}, {
mediaIds: {
$exists: false
}
}]
}, {
$set: {
mediaIds: []
}
}, false, true);