This commit is contained in:
syuilo
2018-03-28 15:54:47 +09:00
parent 69cef75b53
commit 02be56cfc0
3 changed files with 32 additions and 5 deletions

View File

@@ -130,3 +130,20 @@ db.othelloGames.update({}, {
}
}, false, true);
db.othello_matchings.renameCollection('othelloMatchings');
db.othelloMatchings.update({}, {
$rename: {
created_at: 'createdAt',
parent_id: 'parentId',
child_id: 'childId'
}
}, false, true);
db.poll_votes.renameCollection('pollVotes');
db.pollVotes.update({}, {
$rename: {
created_at: 'createdAt',
user_id: 'userId',
post_id: 'postId'
}
}, false, true);