summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:09:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:09:49 +0900
commit9bcd3cde46c457f0f59dbf8694652615ba9b272f (patch)
tree6dd6131d010069398cce859a4a0b7e13dcabdfa1 /tools
parentwip (diff)
downloadsharkey-9bcd3cde46c457f0f59dbf8694652615ba9b272f.tar.gz
sharkey-9bcd3cde46c457f0f59dbf8694652615ba9b272f.tar.bz2
sharkey-9bcd3cde46c457f0f59dbf8694652615ba9b272f.zip
wip
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/shell.camel-case.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/migration/shell.camel-case.js b/tools/migration/shell.camel-case.js
index a7e8afcdce..533868cdc4 100644
--- a/tools/migration/shell.camel-case.js
+++ b/tools/migration/shell.camel-case.js
@@ -180,3 +180,10 @@ db.posts.update({}, {
'_repost.user_id': '_repost.userId',
}
}, false, true);
+
+db.signin.update({}, {
+ $rename: {
+ created_at: 'createdAt',
+ user_id: 'userId',
+ }
+}, false, true);