summaryrefslogtreecommitdiff
path: root/tools/migration
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:11:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:11:50 +0900
commitefb7c71d88f177cb245873f3c705c82c4647b1ed (patch)
tree74c974eb80964074d78980ba9fac73fbb026edee /tools/migration
parentwip (diff)
downloadsharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.gz
sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.bz2
sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.zip
wip
Diffstat (limited to 'tools/migration')
-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 533868cdc4..9cb0baaaf5 100644
--- a/tools/migration/shell.camel-case.js
+++ b/tools/migration/shell.camel-case.js
@@ -187,3 +187,10 @@ db.signin.update({}, {
user_id: 'userId',
}
}, false, true);
+
+db.sw_subscriptions.renameCollection('swSubscriptions');
+db.swSubscriptions.update({}, {
+ $rename: {
+ user_id: 'userId',
+ }
+}, false, true);