mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 17:06:43 -06:00
36 lines
624 B
JavaScript
36 lines
624 B
JavaScript
|
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',
|
||
|
}
|
||
|
}, false, true);
|
||
|
|
||
|
db.users.update({}, {
|
||
|
$rename: {
|
||
|
postsCount: 'notesCount',
|
||
|
pinnedPostId: 'pinnedNoteId',
|
||
|
latestPost: 'latestNote'
|
||
|
}
|
||
|
}, false, true);
|