-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_data.bat
More file actions
36 lines (24 loc) · 1.43 KB
/
set_data.bat
File metadata and controls
36 lines (24 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
mongosh --eval "db.regions.drop()" --quiet
mongoimport --jsonArray --db test --collection regions --file data/city.json
mongosh --eval "db.categories.drop()" --quiet
mongoimport --jsonArray --db test --collection categories --file data/category.json
mongosh --eval "db.users.drop()" --quiet
mongoimport --jsonArray --db test --collection users --file data/user.json
mongosh --eval "db.feeds.drop()" --quiet
mongoimport --jsonArray --db test --collection feeds --file data/feed.json
mongosh --eval "db.counters.drop()" --quiet
mongoimport --jsonArray --db test --collection counters --file data/counter.json
mongosh --eval "db.images.drop()" --quiet
mongoimport --jsonArray --db test --collection images --file data/image.json
mongosh --eval "db.matches.drop()" --quiet
mongoimport --jsonArray --db test --collection matches --file data/match.json
mongosh --eval "db.scraps.drop()" --quiet
mongoimport --jsonArray --db test --collection scraps --file data/scrap.json
mongosh --eval "db.devices.drop()" --quiet
mongoimport --jsonArray --db test --collection devices --file data/device.json
mongosh --eval "db.notices.drop()" --quiet
mongoimport --jsonArray --db test --collection notices --file data/notice.json
mongosh --eval "db.rooms.drop()" --quiet
mongoimport --jsonArray --db test --collection rooms --file data/room.json
mongosh --eval "db.messages.drop()" --quiet
mongoimport --jsonArray --db test --collection messages --file data/message.json