1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-04 17:58:10 +09:00
hotomoe/tools/migration/nighthike/6.js

14 lines
138 B
JavaScript
Raw Normal View History

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