-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.js
13 lines (9 loc) · 2.75 KB
/
backup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
var migrate = function(fromid, toid, data)
{
db.docs.update({id: fromid}, {$set: {"data": data}});
db.docs.update({id: fromid}, {$set: {"id": toid}});
};
migrate("be1f28b1b017353a25e9", "104956cc10c2254f2a37", {"title":"The Kalles svenhippa ","names":["Humlan 0733667172","Anna","Olof","Willy","Carl","Finn","Gittan","Sebastian","Johan 0736362650","Jesper 0702905969","Ming"],"payments":[{"text":"Bil gbg","values":[0,50,0,0,null,50,0,0,0,100,null]},{"text":"Bil Bua","values":[0,45,0,0,90,45,0,0,0,90,null]},{"text":"Bastu","values":[0,0,0,0,0,0,0,0,600,0,null]},{"text":"Mellanmål","values":[0,0,0,0,0,80,0,0,0,261,null]},{"text":"Grillgötta","values":[620,0,0,0,0,0,0,0,0,0,0]},{"text":"Veggiemat","values":[0,275,0,0,0,0,0,0,0,0,0]},{"text":"Kalles sprit","values":[0,0,0,0,0,0,0,250,0,0,0]}]});
migrate("d332f4bea5f42f81760a", "6503f08e23337fcb3355", {"title":"Arvids svensexa","names":["Hannes","Jesper","David","Marcus","Johan","Per","Jonas","Gustav","Magnus","Peter","Erik"],"payments":[{"text":"Frukost","values":[90,0,0,0,0,null,0,null,null,0,0]},{"text":"Kaffe","values":[30,0,0,0,0,null,0,null,null,0,0]},{"text":"Gok","values":[0,0,3900,0,0,null,0,null,null,0,0]},{"text":"Skumpa","values":[0,0,0,0,70,null,0,null,null,0,0]},{"text":"Emmaus","values":[165,0,0,0,0,0,0,0,0,0,0]},{"text":"Middag","values":[0,403,0,0,0,0,0,0,0,0,0]},{"text":"Beach","values":[3082,0,0,0,0,0,0,0,0,0,0]},{"text":"Foajé","values":[0,0,0,0,0,0,0,120,0,0,0]},{"text":"sprit","values":[0,0,0,0,436,0,0,0,0,0,0]},{"text":"biljetter","values":[0,0,0,75,0,0,0,0,0,0,0]}]});
migrate("67279b3cf882e28c9fa4", "c21514de539aa5b79d80", {"title":"GOTland 2015 Make it rain!","names":["Jakob","Elin","Samuel","Hanna","Axel"],"payments":[{"text":"Donken Oskarshamn","values":[231,0,0,null,null]},{"text":"Creperiet Visby","values":[1200,0,0,0,0]},{"text":"Brödboden","values":[104,0,0,0,0]},{"text":"Ica atterdags","values":[665,0,0,0,0]},{"text":"Shell ","values":[533,0,0,0,0]},{"text":"Pizza los panchos","values":[520,0,0,0,0]},{"text":"Ica maxi","values":[897,0,0,0,0]},{"text":"Kutens","values":[500,15,0,null,null]},{"text":"Brödboden fre","values":[79,0,0,0,0]},{"text":"Fika gula huset","values":[0,0,0,0,359]},{"text":"Dricka på maken","values":[0,0,0,0,150]},{"text":"Systembolaget","values":[0,0,0,134,0]},{"text":"Bröd onsdag","values":[0,0,0,54,0]},{"text":"Etelhems fika","values":[0,0,0,0,205]},{"text":"Coop fredag","values":[0,0,0,0,437]},{"text":"Systemet","values":[0,0,0,0,131]},{"text":"Coop lördag","values":[0,398,0,0,0]},{"text":"Bröd lördag","values":[0,0,0,0,94]},{"text":"Parkering","values":[40,0,0,0,15]}]});
db.docs.update({id: "668dce355c242e4c2dab"}, {$set: {"data": {"title":"Sic!","names":["Arvid","Jesper","G","Hannes"],"payments":[{"text":"Sommarbärs","values":[184,124,null, null]}]}}});