chore(contribs_plan): add migration so contribl.lvl >= 7 gets free

plan4life
This commit is contained in:
Tyler Renelle
2014-02-13 11:54:45 -07:00
parent c8faffcc72
commit 8ba12ef392

View File

@@ -0,0 +1,23 @@
// Give contrib.level 7+ free subscription for life
db.users.update(
{
'contributor.level':{$gte:7},
'purchased.plan.customerId':null
},
{
$set: {
'purchased.plan':{
planId: 'basic',
customerId: 'habitrpg',
dateCreated: new Date,
dateUpdated: new Date,
gemsBought: 0
}
}
},
{multi:true}
)