summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 15:59:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 15:59:34 +0900
commit65069d5fdb9af3214d62fcd48f140c9e735fa892 (patch)
treeb4b372d1e3bda73612151d0dca68307e03c70e5b /tools
parentwip (diff)
downloadsharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.tar.gz
sharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.tar.bz2
sharkey-65069d5fdb9af3214d62fcd48f140c9e735fa892.zip
wip
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/shell.camel-case.js9
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);