2018-04-07 10:30:37 -07:00
|
|
|
db.pollVotes.update({}, {
|
|
|
|
$rename: {
|
|
|
|
postId: 'noteId',
|
|
|
|
}
|
|
|
|
}, false, true);
|
|
|
|
|
|
|
|
db.postReactions.renameCollection('noteReactions');
|
|
|
|
db.noteReactions.update({}, {
|
|
|
|
$rename: {
|
|
|
|
postId: 'noteId',
|
|
|
|
}
|
|
|
|
}, false, true);
|
|
|
|
|
|
|
|
db.postWatching.renameCollection('noteWatching');
|
|
|
|
db.noteWatching.update({}, {
|
|
|
|
$rename: {
|
|
|
|
postId: 'noteId',
|
|
|
|
}
|
|
|
|
}, false, true);
|
|
|
|
|
|
|
|
db.posts.renameCollection('notes');
|
|
|
|
db.notes.update({}, {
|
|
|
|
$rename: {
|
|
|
|
_repost: '_renote',
|
|
|
|
repostId: 'renoteId',
|
2018-04-08 00:36:05 -07:00
|
|
|
repostCount: 'renoteCount'
|
2018-04-07 10:30:37 -07:00
|
|
|
}
|
|
|
|
}, false, true);
|
|
|
|
|
|
|
|
db.users.update({}, {
|
|
|
|
$rename: {
|
|
|
|
postsCount: 'notesCount',
|
|
|
|
pinnedPostId: 'pinnedNoteId',
|
|
|
|
latestPost: 'latestNote'
|
|
|
|
}
|
|
|
|
}, false, true);
|