From 24a6b2f4ccf155972443109154476dc5a19c5e03 Mon Sep 17 00:00:00 2001 From: Lisa Marie Date: Mon, 9 Feb 2015 19:39:05 -0700 Subject: [PATCH] migration(plans): sample code for plans which didn't get applied --- migrations/freeMonth.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/migrations/freeMonth.js b/migrations/freeMonth.js index 36f320746c..dba8d256ee 100644 --- a/migrations/freeMonth.js +++ b/migrations/freeMonth.js @@ -8,4 +8,25 @@ db.users.update( 'purchased.plan.planId':'basic_earned', 'purchased.plan.dateTerminated': moment().add('month',1).toDate() }} -) \ No newline at end of file +) + +// db.users.update( +// {_id:''}, +// {$set:{'purchased.plan':{ +// planId: 'basic_3mo', +// paymentMethod: 'Paypal', +// customerId: 'Gift', +// dateCreated: new Date(), +// dateTerminated: moment().add('month',3).toDate() +// dateUpdated: new Date(), +// extraMonths: 0, +// gemsBought: 0, +// mysteryItems: [], +// consecutive: { +// count: 0, +// offset: 3, +// gemCapExtra: 15, +// trinkets: 1 +// } +// }}} +// ) \ No newline at end of file