diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 15:54:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 15:54:47 +0900 |
| commit | 02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4 (patch) | |
| tree | 40071b6b9f18edd1c5b31563801043c666c82a4c /tools | |
| parent | wip (diff) | |
| download | sharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.tar.gz sharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.tar.bz2 sharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.zip | |
wip
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/migration/shell.camel-case.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/migration/shell.camel-case.js b/tools/migration/shell.camel-case.js index 11c6fe401d..6045dfa00c 100644 --- a/tools/migration/shell.camel-case.js +++ b/tools/migration/shell.camel-case.js @@ -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); |