Set empty array instead of null to mediaIds property of posts
This commit is contained in:
parent
4e37ee541a
commit
8c41432907
10 changed files with 11 additions and 10 deletions
1
tools/migration/nighthike/6.js
Normal file
1
tools/migration/nighthike/6.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
db.posts.update({ mediaIds: null }, { $set: { mediaIds: [] } }, false, true);
|
||||
Loading…
Add table
Add a link
Reference in a new issue