setup.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. mongo << EOF
  3. use test
  4. EOF
  5. # db.createCollection("AggTaskStatus")
  6. # db.createCollection("answerNode")
  7. # db.createCollection("autoScore")
  8. # db.createCollection("basicNode")
  9. # db.createCollection("bug")
  10. # db.createCollection("BugData")
  11. # db.createCollection("bugDetail")
  12. # db.createCollection("bugHistory")
  13. # db.createCollection("bugMirror")
  14. # db.createCollection("bugPage")
  15. # db.createCollection("bugScore")
  16. # db.createCollection("bugSimilarScore")
  17. # db.createCollection("bugValidity")
  18. # db.createCollection("caseToBug")
  19. # db.createCollection("configuration")
  20. # mongoimport --db test --collection AggTaskStatus --file /usr/local/work/AggTaskStatus.json
  21. # mongoimport --db test --collection answerNode --file /usr/local/work/answerNode.json
  22. # mongoimport --db test --collection autoScore --file /usr/local/work/autoScore.json
  23. # mongoimport --db test --collection basicNode --file /usr/local/work/basicNode.json
  24. # mongoimport --db test --collection bug --file /usr/local/work/bug.json
  25. # mongoimport --db test --collection BugData --file /usr/local/work/BugData.json
  26. # mongoimport --db test --collection bugDetail --file /usr/local/work/bugDetail.json
  27. # mongoimport --db test --collection bugHistory --file /usr/local/work/bugHistory.json
  28. # mongoimport --db test --collection bugMirror --file /usr/local/work/bugMirror.json
  29. # mongoimport --db test --collection bugPage --file /usr/local/work/bugPage.json
  30. # mongoimport --db test --collection bugScore --file /usr/local/work/bugScore.json
  31. # mongoimport --db test --collection bugSimilarScore --file /usr/local/work/bugSimilarScore.json
  32. # mongoimport --db test --collection bugValidity --file /usr/local/work/bugValidity.json
  33. # mongoimport --db test --collection caseToBug --file /usr/local/work/caseToBug.json
  34. # mongoimport --db test --collection configuration --file /usr/local/work/configuration.json