Sharkey/tools/migration/nighthike/6.js

2 lines
78 B
JavaScript

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