mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 15:15:52 +00:00
fix(db): upgrade flags.recaptureEmailsPhase to new values
This commit is contained in:
parent
8670e269ed
commit
eb1ca43c44
2 changed files with 8 additions and 1 deletions
7
migrations/20150201_recapture_emails_phase_update.js
Normal file
7
migrations/20150201_recapture_emails_phase_update.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
db.users.update({
|
||||
'flags.recaptureEmailsPhase': {
|
||||
$gt: 0
|
||||
}
|
||||
},{$inc:{
|
||||
'flags.recaptureEmailsPhase':1
|
||||
}},{multi:1})
|
||||
|
|
@ -131,7 +131,7 @@ var UserSchema = new Schema({
|
|||
levelDrops: {type:Schema.Types.Mixed, 'default':{}},
|
||||
chatRevoked: Boolean,
|
||||
// Used to track the status of recapture emails sent to each user,
|
||||
// can be 0 - no email sent - 1, 2 or 3 - 3 means no more email will be sent to the user
|
||||
// can be 0 - no email sent - 1, 2, 3 or 4 - 4 means no more email will be sent to the user
|
||||
recaptureEmailsPhase: {type: Number, 'default': 0},
|
||||
communityGuidelinesAccepted: {type: Boolean, 'default': false}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue