wip
This commit is contained in:
parent
65069d5fdb
commit
bed17efd1b
2 changed files with 30 additions and 10 deletions
|
|
@ -156,3 +156,25 @@ db.postReactions.update({}, {
|
|||
post_id: 'postId'
|
||||
}
|
||||
}, false, true);
|
||||
|
||||
db.post_watching.renameCollection('postWatching');
|
||||
db.postWatching.update({}, {
|
||||
$rename: {
|
||||
created_at: 'createdAt',
|
||||
user_id: 'userId',
|
||||
post_id: 'postId'
|
||||
}
|
||||
}, false, true);
|
||||
|
||||
db.posts.update({}, {
|
||||
$rename: {
|
||||
created_at: 'createdAt',
|
||||
channel_id: 'channelId',
|
||||
user_id: 'userId',
|
||||
app_id: 'appId',
|
||||
media_ids: 'mediaIds',
|
||||
reply_id: 'replyId',
|
||||
repost_id: 'repostId',
|
||||
via_mobile: 'viaMobile'
|
||||
}
|
||||
}, false, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue