summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 15:54:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 15:54:47 +0900
commit02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4 (patch)
tree40071b6b9f18edd1c5b31563801043c666c82a4c /tools
parentwip (diff)
downloadsharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.tar.gz
sharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.tar.bz2
sharkey-02be56cfc0feaa6dad6a63759eeae0ec7dfbfff4.zip
wip
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/shell.camel-case.js17
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);