mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 21:45:45 +01:00
oops
This commit is contained in:
parent
61dd1fd718
commit
bb29f462e2
1 changed files with 29 additions and 12 deletions
|
@ -178,8 +178,22 @@ db.posts.update({}, {
|
||||||
via_mobile: 'viaMobile',
|
via_mobile: 'viaMobile',
|
||||||
reaction_counts: 'reactionCounts',
|
reaction_counts: 'reactionCounts',
|
||||||
replies_count: 'repliesCount',
|
replies_count: 'repliesCount',
|
||||||
repost_count: 'repostCount',
|
repost_count: 'repostCount'
|
||||||
|
}
|
||||||
|
}, false, true);
|
||||||
|
|
||||||
|
db.posts.update({
|
||||||
|
_reply: { $ne: null }
|
||||||
|
}, {
|
||||||
|
$rename: {
|
||||||
'_reply.user_id': '_reply.userId',
|
'_reply.user_id': '_reply.userId',
|
||||||
|
}
|
||||||
|
}, false, true);
|
||||||
|
|
||||||
|
db.posts.update({
|
||||||
|
_repost: { $ne: null }
|
||||||
|
}, {
|
||||||
|
$rename: {
|
||||||
'_repost.user_id': '_repost.userId',
|
'_repost.user_id': '_repost.userId',
|
||||||
}
|
}
|
||||||
}, false, true);
|
}, false, true);
|
||||||
|
@ -198,6 +212,20 @@ db.swSubscriptions.update({}, {
|
||||||
}
|
}
|
||||||
}, false, true);
|
}, false, true);
|
||||||
|
|
||||||
|
db.users.update({}, {
|
||||||
|
$unset: {
|
||||||
|
likes_count: '',
|
||||||
|
liked_count: '',
|
||||||
|
latest_post: '',
|
||||||
|
'account.twitter.access_token': '',
|
||||||
|
'account.twitter.access_token_secret': '',
|
||||||
|
'account.twitter.user_id': '',
|
||||||
|
'account.twitter.screen_name': '',
|
||||||
|
'account.line.user_id': '',
|
||||||
|
'account.client_settings.mobile_home': ''
|
||||||
|
}
|
||||||
|
}, false, true);
|
||||||
|
|
||||||
db.users.update({}, {
|
db.users.update({}, {
|
||||||
$rename: {
|
$rename: {
|
||||||
created_at: 'createdAt',
|
created_at: 'createdAt',
|
||||||
|
@ -218,16 +246,5 @@ db.users.update({}, {
|
||||||
'account.two_factor_secret': 'account.twoFactorSecret',
|
'account.two_factor_secret': 'account.twoFactorSecret',
|
||||||
'account.two_factor_enabled': 'account.twoFactorEnabled',
|
'account.two_factor_enabled': 'account.twoFactorEnabled',
|
||||||
'account.client_settings': 'account.clientSettings'
|
'account.client_settings': 'account.clientSettings'
|
||||||
},
|
|
||||||
$unset: {
|
|
||||||
likes_count: '',
|
|
||||||
liked_count: '',
|
|
||||||
latest_post: '',
|
|
||||||
'account.twitter.access_token': '',
|
|
||||||
'account.twitter.access_token_secret': '',
|
|
||||||
'account.twitter.user_id': '',
|
|
||||||
'account.twitter.screen_name': '',
|
|
||||||
'account.line.user_id': '',
|
|
||||||
'account.client_settings.mobile_home': ''
|
|
||||||
}
|
}
|
||||||
}, false, true);
|
}, false, true);
|
||||||
|
|
Loading…
Reference in a new issue