diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-27 12:23:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-27 12:23:51 +0900 |
| commit | affaf07d3fb90dbe4b6fbfa1aa8c17f3cb8c4f46 (patch) | |
| tree | 59fc32601e2a768f4cbda87b7068c5f10010ac65 /tools/migration | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| parent | Merge pull request #1311 from akihikodaki/key (diff) | |
| download | misskey-affaf07d3fb90dbe4b6fbfa1aa8c17f3cb8c4f46.tar.gz misskey-affaf07d3fb90dbe4b6fbfa1aa8c17f3cb8c4f46.tar.bz2 misskey-affaf07d3fb90dbe4b6fbfa1aa8c17f3cb8c4f46.zip | |
Merge remote-tracking branch 'refs/remotes/origin/master' into domain
Diffstat (limited to 'tools/migration')
| -rw-r--r-- | tools/migration/node.1522066477.user-account-keypair.js | 4 | ||||
| -rw-r--r-- | tools/migration/shell.1522116709.user-host.js | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/migration/node.1522066477.user-account-keypair.js b/tools/migration/node.1522066477.user-account-keypair.js index 4a968aae28..effea137c6 100644 --- a/tools/migration/node.1522066477.user-account-keypair.js +++ b/tools/migration/node.1522066477.user-account-keypair.js @@ -6,9 +6,7 @@ const updates = []; User.find({}).each(function(user) { updates.push(User.update({ _id: user._id }, { $set: { - account: { - keypair: generate(), - } + 'account.keypair': generate(), } })); }).then(function () { diff --git a/tools/migration/shell.1522116709.user-host.js b/tools/migration/shell.1522116709.user-host.js new file mode 100644 index 0000000000..b354709a61 --- /dev/null +++ b/tools/migration/shell.1522116709.user-host.js @@ -0,0 +1 @@ +db.users.update({ }, { $set: { host: null } }, { multi: true }); |