From efb7c71d88f177cb245873f3c705c82c4647b1ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 28 Mar 2018 16:11:50 +0900 Subject: wip --- tools/migration/shell.camel-case.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') 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); -- cgit v1.2.3-freya