mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
add migration for adding missing preferences (to be run)
This commit is contained in:
parent
38a3c2fa9a
commit
8fa318f900
1 changed files with 5 additions and 0 deletions
5
migrations/20130129_add_missing_preferences.js
Normal file
5
migrations/20130129_add_missing_preferences.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
db.users.update(
|
||||
{'preferences':{$exists:false}},
|
||||
{$set:{preferences:{gender:'m'}}},
|
||||
{multi:true}
|
||||
)
|
||||
Loading…
Reference in a new issue