1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-14 06:38:28 +09:00
cherrypick/tools/migration/nighthike/6.js

14 lines
139 B
JavaScript
Raw Normal View History

2018-03-31 21:49:26 +09:00
db.posts.update({
$or: [{
mediaIds: null
}, {
mediaIds: {
2018-04-02 18:36:07 +09:00
$exists: false
2018-03-31 21:49:26 +09:00
}
}]
}, {
$set: {
mediaIds: []
}
}, false, true);