summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 13:20:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 13:20:19 +0900
commitac12e63a853359b819dfd5df3ef9604a51e27cd4 (patch)
tree4cd48e5fd12f52cf01e29dd4c67f26fbae79f115 /tools
parentwip (diff)
downloadsharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.gz
sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.tar.bz2
sharkey-ac12e63a853359b819dfd5df3ef9604a51e27cd4.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 ac0476af0c..9f07bd946d 100644
--- a/tools/migration/shell.camel-case.js
+++ b/tools/migration/shell.camel-case.js
@@ -101,3 +101,12 @@ db.messagingMessages.update({}, {
}
}, false, true);
+db.mute.update({}, {
+ $rename: {
+ created_at: 'createdAt',
+ deleted_at: 'deletedAt',
+ mutee_id: 'muteeId',
+ muter_id: 'muterId',
+ }
+}, false, true);
+