mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
feat(thanksgiving): add migration for turkey mounts / pets
This commit is contained in:
parent
be3342cb26
commit
a8cf102610
1 changed files with 11 additions and 0 deletions
11
migrations/20141126_turkey_mounts.js
Normal file
11
migrations/20141126_turkey_mounts.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
db.users.update(
|
||||
{'items.pets.Turkey-Base':{$ne:null}},
|
||||
{$set:{'items.mounts.Turkey-Base':true}},
|
||||
{multi:1}
|
||||
)
|
||||
|
||||
db.users.update(
|
||||
{'items.pets.Turkey-Base':null},
|
||||
{$set:{'items.pets.Turkey-Base':5}},
|
||||
{multi:1}
|
||||
)
|
||||
Loading…
Reference in a new issue