mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-19 03:16:35 +01:00
19 lines
318 B
JavaScript
19 lines
318 B
JavaScript
|
db.users.find({}).forEach(function(user) {
|
||
|
print(user._id);
|
||
|
db.users.update({ _id: user._id }, {
|
||
|
$rename: {
|
||
|
bio: 'description'
|
||
|
},
|
||
|
$unset: {
|
||
|
location: '',
|
||
|
birthday: ''
|
||
|
},
|
||
|
$set: {
|
||
|
profile: {
|
||
|
location: user.location || null,
|
||
|
birthday: user.birthday || null
|
||
|
}
|
||
|
}
|
||
|
}, false, false);
|
||
|
});
|