mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Update migration script
This commit is contained in:
parent
6a6eb96daa
commit
102d8467ac
@ -1 +1,13 @@
|
||||
db.posts.update({ mediaIds: null }, { $set: { mediaIds: [] } }, false, true);
|
||||
db.posts.update({
|
||||
$or: [{
|
||||
mediaIds: null
|
||||
}, {
|
||||
mediaIds: {
|
||||
$exist: false
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
$set: {
|
||||
mediaIds: []
|
||||
}
|
||||
}, false, true);
|
||||
|
Loading…
Reference in New Issue
Block a user