diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 15:59:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 15:59:34 +0900 |
| commit | 65069d5fdb9af3214d62fcd48f140c9e735fa892 (patch) | |
| tree | b4b372d1e3bda73612151d0dca68307e03c70e5b /tools | |
| parent | wip (diff) | |
| download | sharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.tar.gz sharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.tar.bz2 sharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.zip | |
wip
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/migration/shell.camel-case.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/migration/shell.camel-case.js b/tools/migration/shell.camel-case.js index 6045dfa00c..2a5456b4d0 100644 --- a/tools/migration/shell.camel-case.js +++ b/tools/migration/shell.camel-case.js @@ -147,3 +147,12 @@ db.pollVotes.update({}, { post_id: 'postId' } }, false, true); + +db.post_reactions.renameCollection('postReactions'); +db.postReactions.update({}, { + $rename: { + created_at: 'createdAt', + user_id: 'userId', + post_id: 'postId' + } +}, false, true); |