diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:11:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:11:50 +0900 |
| commit | efb7c71d88f177cb245873f3c705c82c4647b1ed (patch) | |
| tree | 74c974eb80964074d78980ba9fac73fbb026edee /tools/migration | |
| parent | wip (diff) | |
| download | sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.gz sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.bz2 sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.zip | |
wip
Diffstat (limited to 'tools/migration')
| -rw-r--r-- | tools/migration/shell.camel-case.js | 7 |
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); |